Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/scalar/scalar
/ functions
Functions
4,087 in github.com/scalar/scalar
⨍
Functions
4,087
◇
Types & classes
253
↳
Endpoints
19
↓ 1 callers
Function
maybeAddCustomMethodClass
(lines: string[], method: string, hasBody: boolean)
packages/snippetz/src/plugins/ruby/native/native.ts:28
↓ 1 callers
Function
mediaTypeExamplesToStrings
(mediaType: MediaTypeObject)
packages/api-reference/src/features/Search/helpers/create-search-index.ts:62
↓ 1 callers
Function
mergeBodyAttrsWithInitialClass
* Ensure the initial body class from Scalar config always exists. * If Unhead provides body classes, merge them rather than overriding.
packages/server-side-rendering/src/ssr.ts:111
↓ 1 callers
Function
mergeComponents
(inputs: ComponentsObject[])
packages/openapi-parser/src/utils/join/join.ts:147
↓ 1 callers
Function
mergeDescription
(firstDescription?: string, secondDescription?: string)
packages/postman-to-openapi/src/helpers/merge-operation.ts:201
↓ 1 callers
Function
mergeExamplesIntoParameters
( parameters: NonNullable<v_2_5_0['Request']['parameters']>, requestExamples: v_2_5_0['RequestExample'][],
packages/oas-utils/src/migrations/migrate-to-indexdb.ts:499
↓ 1 callers
Function
mergeExamplesIntoRequestBody
( requestBody: RequestBodyObject, requestExamples: v_2_5_0['RequestExample'][], )
packages/oas-utils/src/migrations/migrate-to-indexdb.ts:698
↓ 1 callers
Function
mergeItems
( existing: SchemaObject, incoming: SchemaObject, seenRefs: Set<string> = new Set(), )
packages/api-reference/src/components/Content/Schema/helpers/merge-all-of-schemas.ts:345
↓ 1 callers
Function
mergeItemsIntoResult
(result: SchemaObject, items: SchemaObject, seenRefs: Set<string> = new Set())
packages/api-reference/src/components/Content/Schema/helpers/merge-all-of-schemas.ts:306
↓ 1 callers
Function
mergeParameters
( pathItemParameters: OpenAPIV3_1.PathItemObject['parameters'], operationParameters: OpenAPIV3_1.Operation
packages/mock-server/src/utils/validate-request.ts:153
↓ 1 callers
Function
mergeQueryString
(url: URL, queryString: HarRequest['queryString'] = [])
packages/snippetz/src/plugins/python/python3/python3.ts:30
↓ 1 callers
Function
mergeReleaseNotes
(existing: readonly ReleaseNote[], next: ReleaseNote)
packages/release-notes/src/writers/write-release-notes-json.ts:79
↓ 1 callers
Function
mergeSchemaTypes
(schemas: Schema[])
packages/schemas/scripts/generate-types.ts:150
↓ 1 callers
Function
mergeScriptsBySource
( operation1: OpenAPIV3_1.OperationObject, operation2: OpenAPIV3_1.OperationObject, extensionKey: (typeo
packages/postman-to-openapi/src/helpers/merge-operation.ts:212
↓ 1 callers
Function
mergeSerializedProperties
(jsonObjectLiteral: string, dynamicProperties: string[])
packages/server-side-rendering/src/ssr.ts:337
↓ 1 callers
Function
mergeServers
(inputs: ServerObject[][])
packages/openapi-parser/src/utils/join/join.ts:123
↓ 1 callers
Function
mergeSummary
(firstSummary?: string, secondSummary?: string)
packages/postman-to-openapi/src/helpers/merge-operation.ts:183
↓ 1 callers
Function
mergeTagDescriptions
(description?: string, contextDescription?: string)
packages/postman-to-openapi/src/convert.ts:166
↓ 1 callers
Function
mergeTags
(inputs: TagObject[][])
packages/openapi-parser/src/utils/join/join.ts:100
↓ 1 callers
Function
mergeTagsIntoDocument
(openapi: OpenAPIV3_1.Document, incoming: OpenAPIV3_1.TagObject[])
packages/postman-to-openapi/src/convert.ts:462
↓ 1 callers
Function
mergeWsQuerySchemas
( channelQuery: AsyncApiWsBindingObject['query'], operationQuery: AsyncApiWsBindingObject['query'], )
packages/workspace-store/src/channel-example/build-connection-url.ts:152
↓ 1 callers
Function
messageId
* Derives a channel-message map key from a message: last `$ref` segment, `name`, or a generated * `message-N`. The generated fallback is checked agai
packages/asyncapi-upgrader/src/2.6-to-3.0/upgrade-from-two-to-three.ts:250
↓ 1 callers
Function
migrateAuth
(scheme: v_0_0_0.SecurityScheme)
packages/oas-utils/src/migrations/v-2.1.0/migration.ts:51
↓ 1 callers
Function
migrateFlow
(flow: Flow)
packages/oas-utils/src/migrations/v-2.1.0/migration.ts:220
↓ 1 callers
Function
migrateLocalStorageToIndexDb
()
packages/oas-utils/src/migrations/migrate-to-indexdb.ts:58
↓ 1 callers
Function
migrateSecurityScheme
( scheme: v_2_1_0.SecurityScheme, auth: v_2_1_0.Collection['auth'][string], )
packages/oas-utils/src/migrations/v-2.2.0/migration.ts:6
↓ 1 callers
Function
migrateTagGroups
* Migrate x-tagGroups to kind property on tags
packages/openapi-upgrader/src/3.1-to-3.2/upgrade-from-three-one-to-three-two.ts:49
↓ 1 callers
Function
migrateXmlObjects
* Recursively migrate XML object properties from 3.1 to 3.2 format
packages/openapi-upgrader/src/3.1-to-3.2/upgrade-from-three-one-to-three-two.ts:6
↓ 1 callers
Function
migrate_v_2_1_0
(data: Omit<v_0_0_0.DataRecord, 'folders'>)
packages/oas-utils/src/migrations/v-2.1.0/migration.ts:9
↓ 1 callers
Function
migrate_v_2_2_0
(data: v_2_1_0.DataRecord)
packages/oas-utils/src/migrations/v-2.2.0/migration.ts:102
↓ 1 callers
Function
migrate_v_2_3_0
(data: v_2_2_0.DataRecord)
packages/oas-utils/src/migrations/v-2.3.0/migration.ts:6
↓ 1 callers
Function
migrator
()
packages/oas-utils/src/migrations/migrator.ts:12
↓ 1 callers
Function
mockAnyResponse
(c: Context, operation: OpenAPIV3_1.OperationObject)
packages/mock-server/src/routes/mock-any-response.ts:18
↓ 1 callers
Function
mockHandlerResponse
(c: Context, operation: OpenAPIV3_1.OperationObject)
packages/mock-server/src/routes/mock-handler-response.ts:142
↓ 1 callers
Function
mockRequestIdleCallbackController
()
packages/api-reference/test/utils/idle-request-controller.ts:17
↓ 1 callers
Function
mountAll
()
integrations/astro/src/client.ts:205
↓ 1 callers
Function
moveOperationBetweenDocuments
( draggingDocument: OpenApiDocument, hoveredDocument: OpenApiDocument, draggingItem: TraversedOperation,
projects/scalar-app/src/helpers/drag-handle-factory.ts:215
↓ 1 callers
Function
namespaceStickerSvgIds
(sticker)
documentation/assets/company.js:96
↓ 1 callers
Function
navigate
(pointer: string)
projects/scalar-app/src/features/editor/hooks/use-json-pointer-link-support.ts:45
↓ 1 callers
Function
navigateToDraftsOverview
(page: Page)
projects/scalar-app/test/helpers/request-scripts-csp-scenario.ts:126
↓ 1 callers
Function
needsArrayItemParen
(t: string)
packages/validation/src/typegen.ts:271
↓ 1 callers
Function
needsQuotes
* Checks if a key needs to be wrapped in quotes when used as an object property * * Returns true when the key is not a valid JavaScript identifier.
packages/snippetz/src/libs/javascript.ts:6
↓ 1 callers
Method
normalizeBasePath
Normalizes the base path by returning the default path if the provided base path is null or empty. @param basePath the base path to normalize @return
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/ScalarHtmlRenderer.java:37
↓ 1 callers
Function
normalizeDiscriminatorMappingRef
(value: string)
packages/api-reference/src/components/Content/Schema/helpers/get-compositions-to-render.ts:17
↓ 1 callers
Function
normalizeJsonPointer
(pointer: string)
packages/openapi-to-markdown/src/create-markdown-from-openapi.ts:91
↓ 1 callers
Function
normalizeMethod
(method?: string)
packages/snippetz/src/plugins/c/libcurl/libcurl.ts:3
↓ 1 callers
Function
normalizeOverviewPage
(blog: unknown)
tooling/scripts/src/commands/generate-blog.ts:404
↓ 1 callers
Function
normalizeRelativePath
(input: string)
packages/release-notes/src/core/paths.ts:10
↓ 1 callers
Function
normalizeRepoRelativePath
(inputPath: string)
packages/release-notes/src/core/detect-versioned-changelog-paths.ts:11
↓ 1 callers
Function
normalizeSchemaDefault
(schema: SchemaObject)
packages/workspace-store/src/request-example/builder/helpers/get-example-from-schema.ts:341
↓ 1 callers
Function
normalizeSchemaTypes
(schema: SchemaObject)
packages/workspace-store/src/request-example/builder/body/build-request-body.ts:87
↓ 1 callers
Function
normalizeStickerSvgViewport
(sticker, svg)
documentation/assets/company.js:81
↓ 1 callers
Function
normalizeTemplateParameterName
(name: string)
packages/openapi-parser/src/utils/validate-path-parameters.ts:88
↓ 1 callers
Function
normalizeUrl
(url: string)
packages/snippetz/src/plugins/c/libcurl/libcurl.ts:13
↓ 1 callers
Function
not
(fn)
packages/openapi-parser/src/utils/betterAjvErrors/utils.ts:3
↓ 1 callers
Function
notifyAborted
(targetCallbacks: WebSocketSessionCallbacks)
packages/api-client/src/v2/blocks/channel-operation-block/helpers/websocket-session.ts:105
↓ 1 callers
Function
numericString
(length: number)
packages/workspace-store/src/request-example/functions.ts:109
↓ 1 callers
Function
observeStickerRoots
()
documentation/assets/company.js:211
↓ 1 callers
Function
offAny
(listener: AnyEventListener)
packages/workspace-store/src/events/bus.ts:330
↓ 1 callers
Function
on
(event: E, listener: EventListener<E>)
packages/workspace-store/src/events/bus.ts:300
↓ 1 callers
Function
onRequest
({ context })
packages/mock-server/docker/src/server.ts:50
↓ 1 callers
Function
openParents
(node: (T & { parent?: T }) | undefined)
packages/sidebar/src/helpers/create-sidebar-state.ts:161
↓ 1 callers
Function
operationMutatorsFactory
({ document, store, }: { document: WorkspaceDocument | null store: WorkspaceStore | null })
packages/workspace-store/src/mutators/operation/index.ts:28
↓ 1 callers
Function
optionalBindingPayload
()
packages/schemas/src/asyncapi/3.1/bindings.ts:32
↓ 1 callers
Function
parameterSchemaFromType
(type: OpenApiParamSchemaType)
packages/postman-to-openapi/src/helpers/path-items.ts:351
↓ 1 callers
Function
parseAuth
Get the Authorization header from a curl command
projects/scalar-app/src/features/command-palette/helpers/parse-curl.ts:140
↓ 1 callers
Function
parseBlogPost
(blogDir: string, filename: string)
tooling/scripts/src/commands/generate-blog.ts:151
↓ 1 callers
Function
parseBracketKey
(name: string)
packages/api-client/src/v2/blocks/request-block/helpers/create-parameter-handlers.ts:27
↓ 1 callers
Function
parseClientsFromImport
* Converts the imported clients array to the expected format for enum generation.
packages/snippetz/scripts/generate-java-enums.ts:85
↓ 1 callers
Function
parseClientsFromImport
* Converts the imported clients array to the expected format for enum generation.
packages/snippetz/scripts/generate-dotnet-enums.ts:113
↓ 1 callers
Function
parseCollectionInput
(postmanCollection: PostmanCollection | string)
packages/postman-to-openapi/src/convert.ts:37
↓ 1 callers
Function
parseCommandLineArgs
()
packages/mock-server/docker/src/docker-entrypoint.ts:6
↓ 1 callers
Function
parseContent
* Parse YAML or JSON content into a JavaScript object
packages/api-reference/src/helpers/download.ts:23
↓ 1 callers
Function
parseContentType
Get the Content-Type header from a curl command
projects/scalar-app/src/features/command-palette/helpers/parse-curl.ts:124
↓ 1 callers
Function
parseCookie
Get the Cookie header from a curl command
projects/scalar-app/src/features/command-palette/helpers/parse-curl.ts:155
↓ 1 callers
Function
parseCookieHeader
(cookieValue: string)
packages/workspace-store/src/mutators/operation/helpers/fetch-request-to-har.ts:213
↓ 1 callers
Function
parseData
Parse data from a curl command
projects/scalar-app/src/features/command-palette/helpers/parse-curl.ts:166
↓ 1 callers
Function
parseDeepObject
( query: Record<string, string | string[]>, name: string, )
packages/mock-server/src/utils/deserialize-parameter.ts:266
↓ 1 callers
Function
parseDocumentDetails
( document: ParsedApiDocument, type: 'json' | 'yaml', )
projects/scalar-app/src/features/command-palette/helpers/get-openapi-document-details.ts:42
↓ 1 callers
Function
parseEmbeddedOpenApi
* Parse embedded OpenAPI document from HTML
packages/import/src/resolve.ts:310
↓ 1 callers
Function
parseExistingDescriptions
* Parse existing row descriptions from the current layout and from the previous * card layout so custom summaries survive migration.
tooling/scripts/src/commands/generate-blog.ts:211
↓ 1 callers
Function
parseHeader
Get the headers from a curl command
projects/scalar-app/src/features/command-palette/helpers/parse-curl.ts:89
↓ 1 callers
Function
parseHtml
* Go through the HTML and try to find the OpenAPI document URL
packages/import/src/resolve.ts:142
↓ 1 callers
Function
parseJsonPointer
(pointer: string)
packages/openapi-to-markdown/src/create-markdown-from-openapi.ts:103
↓ 1 callers
Function
parseMatrixArray
(value: string | undefined, explode: boolean)
packages/mock-server/src/utils/deserialize-parameter.ts:201
↓ 1 callers
Function
parseMethod
Get the method from a curl command
projects/scalar-app/src/features/command-palette/helpers/parse-curl.ts:70
↓ 1 callers
Function
parsePairs
(value: string | undefined, delimiter: string)
packages/mock-server/src/utils/deserialize-parameter.ts:262
↓ 1 callers
Function
parseParameter
(entry: string)
packages/helpers/src/http/mime-type.ts:16
↓ 1 callers
Function
parseParametersFromDescription
(description: string)
packages/postman-to-openapi/src/helpers/path-items.ts:358
↓ 1 callers
Function
parsePathVariables
Get the {query} parameters from a curl command
projects/scalar-app/src/features/command-palette/helpers/parse-curl.ts:100
↓ 1 callers
Function
parseProviderJson
(payload: unknown)
packages/release-notes/src/core/generate-release-note.ts:138
↓ 1 callers
Function
parseRequestBodyData
(data: string)
projects/scalar-app/src/features/command-palette/helpers/get-operation-from-curl.ts:34
↓ 1 callers
Function
parseRequestUrl
(url: string)
packages/snippetz/src/plugins/python/python3/python3.ts:18
↓ 1 callers
Function
parseScopeParam
* Parses the OAuth 2.0 scope query parameter (space- or +-separated) into an array of scope strings.
packages/mock-server/src/routes/respond-with-authorize-page.ts:23
↓ 1 callers
Function
parseScriptContent
* Parse OpenAPI document directly from script tag content
packages/import/src/resolve.ts:241
↓ 1 callers
Function
parseSetCookieHeader
(setCookieValue: string)
packages/workspace-store/src/mutators/operation/helpers/fetch-response-to-har.ts:198
↓ 1 callers
Function
parseStatusCodeFromLine
* Parses a line of script to extract a status code. * Supports patterns like: * - pm.response.to.have.status(201) * - pm.expect(pm.response.code).t
packages/postman-to-openapi/src/helpers/status-codes.ts:38
↓ 1 callers
Function
parseUrl
* Parses a URL string into its component parts.
packages/postman-to-openapi/src/helpers/urls.ts:13
↓ 1 callers
Function
parsedValueMatchesSchemaType
(value: unknown, types: string[])
packages/workspace-store/src/request-example/builder/body/build-request-body.ts:108
↓ 1 callers
Function
pascalize
(str: string)
packages/icons/scripts/generate-icons.ts:179
← previous
next →
2,601–2,700 of 4,087, ranked by callers