MCPcopy Create free account

hub / github.com/scalar/scalar / functions

Functions4,087 in github.com/scalar/scalar

↓ 1 callersMethodexecuteProxyRequest
executeProxyRequest handles the proxying logic 1. Preserves all original headers (except CORS headers) 2. Maintains session state through redirects 3
projects/proxy-scalar-com/main.go:362
↓ 1 callersFunctionexecuteSeed
(code: string, context: SeedContext)
packages/mock-server/src/utils/execute-seed.ts:14
↓ 1 callersFunctionexportDocument
(documentName: string, format: 'json' | 'yaml', minify?: boolean)
packages/workspace-store/src/client.ts:916
↓ 1 callersFunctionexternalizeElectronPlugin
()
projects/scalar-app/vitest.config.ts:16
↓ 1 callersFunctionextractBaseUrlFromDocumentUrl
* Extracts the base URL (protocol + hostname) from a document URL. * Returns undefined if the URL is invalid.
packages/workspace-store/src/request-example/context/servers.ts:43
↓ 1 callersFunctionextractBodyExample
( body: v_2_5_0['RequestExample']['body'], )
packages/oas-utils/src/migrations/migrate-to-indexdb.ts:648
↓ 1 callersFunctionextractChannelId
Returns the channel id from a `{ $ref: '#/channels/{id}' }` value, or `undefined` for anything else.
packages/asyncapi-upgrader/src/3.0-to-3.1/upgrade-from-three-to-three-one.ts:113
↓ 1 callersFunctionextractDescription
(raw: string)
tooling/scripts/src/commands/generate-blog.ts:178
↓ 1 callersFunctionextractDescriptionFromName
(name: string | undefined, statusCode: string)
packages/postman-to-openapi/src/helpers/responses.ts:118
↓ 1 callersFunctionextractFilename
(contentDisposition: string)
packages/agent-chat/src/components/ResponseBody/helpers/process-response-body.ts:11
↓ 1 callersFunctionextractFirstTextParagraph
(lines: string[])
tooling/scripts/src/commands/generate-blog.ts:263
↓ 1 callersFunctionextractFormDataParams
(formData: FormData)
packages/workspace-store/src/mutators/operation/helpers/fetch-request-to-har.ts:158
↓ 1 callersFunctionextractFullHostTemplateVariableName
(rawServerUrl: string)
packages/postman-to-openapi/src/helpers/urls.ts:64
↓ 1 callersFunctionextractHeaders
( headers: HeaderList | string | null | undefined, )
packages/postman-to-openapi/src/helpers/responses.ts:170
↓ 1 callersFunctionextractInlineChildrenFromMarkdown
(value: string)
packages/code-highlight/src/markdown/markdown.ts:79
↓ 1 callersFunctionextractOperationInfo
(name: string | undefined)
packages/postman-to-openapi/src/helpers/path-items.ts:428
↓ 1 callersFunctionextractPathParams
(node: ParameterDeclaration | undefined, program: Program)
packages/nextjs-openapi/src/path.ts:38
↓ 1 callersFunctionextractPathVariablesFromPathArray
* Helper function to extract variables from the url.path array.
packages/postman-to-openapi/src/helpers/parameters.ts:120
↓ 1 callersFunctionextractPayloadSchema
Extract a plain JSON Schema from a message `payload`, unwrapping the Multi Format Schema Object.
packages/mock-server/src/utils/resolve-channels.ts:17
↓ 1 callersFunctionextractPointer
(input: string)
projects/scalar-app/src/features/editor/helpers/json/json-pointer-path.ts:5
↓ 1 callersFunctionextractResponseExamples
(responses: ResponsesObject | undefined)
packages/api-reference/src/features/Search/helpers/create-search-index.ts:81
↓ 1 callersFunctionextractSchemaLabel
(schema: unknown)
projects/scalar-app/src/features/command-palette/helpers/get-postman-document-details.ts:20
↓ 1 callersFunctionextractStoredEntry
(bytes: Uint8Array)
packages/void-server/src/utils/create-zip-file-response.test.ts:11
↓ 1 callersFunctionextractTagContextsForSelectedPaths
( items: PostmanCollection['item'], paths: readonly PostmanRequestIndexPath[], )
packages/postman-to-openapi/src/convert.ts:310
↓ 1 callersFunctionextractTags
(items: PostmanCollection['item'], strategy: TagNamingStrategy)
packages/postman-to-openapi/src/convert.ts:304
↓ 1 callersFunctionextractTagsForSelectedPaths
( items: PostmanCollection['item'], paths: readonly PostmanRequestIndexPath[], strategy: TagNamingStrate
packages/postman-to-openapi/src/convert.ts:355
↓ 1 callersFunctionextractText
(response: OpenAIResponse)
packages/release-notes/src/providers/openai.ts:23
↓ 1 callersFunctionextractText
(response: AnthropicResponse)
packages/release-notes/src/providers/anthropic.ts:18
↓ 1 callersFunctionextractTitle
(raw: string)
tooling/scripts/src/commands/generate-blog.ts:170
↓ 1 callersFunctionextractUrlSearchParams
( params: URLSearchParams, )
packages/workspace-store/src/mutators/operation/helpers/fetch-request-to-har.ts:176
↓ 1 callersFunctionfetchCurrentTeamSlug
()
projects/scalar-app/entrypoints/web/src/router.ts:20
↓ 1 callersFunctionfetchPullRequests
(options: FetchOptions)
packages/release-notes/src/core/fetch-pull-requests.ts:66
↓ 1 callersFunctionfileNameResolver
(source: string, target: string)
packages/ts-to-openapi/test/test-setup.ts:40
↓ 1 callersFunctionfilterDocumentByOperation
(document: OpenApiDocument, selector: OperationSelector)
packages/openapi-to-markdown/src/create-markdown-from-openapi.ts:219
↓ 1 callersFunctionfilterEmpty
(input: Record<string, unknown>)
packages/snippetz/src/plugins/clojure/clj_http/clj_http.ts:44
↓ 1 callersFunctionfilterEntry
( entry: TraversedEntry, document: AsyncApiDocument, filter: AsyncApiNavigationFilter, context: AsyncA
packages/api-reference/src/blocks/scalar-asyncapi-sidebar-filters-block/helpers/filter-async-api-navigation.ts:40
↓ 1 callersFunctionfilterPathItemToSingleOperation
(pathItem: PathItemObject, selectedMethod: HttpMethod)
packages/openapi-to-markdown/src/create-markdown-from-openapi.ts:143
↓ 1 callersFunctionfilterRedundantErrors
(root, parent, key)
packages/openapi-parser/src/utils/betterAjvErrors/helpers.ts:48
↓ 1 callersMethodfindBestMatch
()
packages/openapi-parser/src/utils/betterAjvErrors/validation-errors/enum.js:29
↓ 1 callersFunctionfindChannelName
(document: AsyncApiDocument, channel: AsyncApiChannelObject)
packages/workspace-store/src/channel-example/resolve-operation-channel.ts:14
↓ 1 callersFunctionfindConfigPath
(cwd: string)
packages/release-notes/src/config/read-config.ts:40
↓ 1 callersFunctionfindFolder
()
projects/scalar-app/test/electron.e2e.ts:13
↓ 1 callersFunctionfindFolderTemplateHint
( pathItemGroup: { pathItem: OpenAPIV3_1.PathItemObject; parameterNames: string[] }[], signature: string,
packages/postman-to-openapi/src/convert.ts:671
↓ 1 callersFunctionfindOperationsByOperationId
(document: OpenApiDocument, operationId: string)
packages/openapi-to-markdown/src/create-markdown-from-openapi.ts:173
↓ 1 callersFunctionfindQuotedStringBounds
(line: string, index: number)
projects/scalar-app/src/features/editor/helpers/json/json-pointer-links.ts:38
↓ 1 callersFunctionfindReleaseNotesProductByJsonPath
( jsonPath: string, products: readonly ReleaseNotesProduct[], )
packages/release-notes/src/core/products.ts:12
↓ 1 callersFunctionflatten
(val: unknown)
packages/void-server/test/utils/create-mock-context.ts:34
↓ 1 callersFunctionflattenChildren
(childUids: string[])
packages/oas-utils/src/migrations/v-2.1.0/migration.ts:20
↓ 1 callersFunctionflattenDeepObjectProperties
( parameter: ParameterWithRequiredSchema, schema: Extract<SchemaObject, { type: 'object' }>, namePrefix:
packages/api-reference/src/features/Operation/helpers/flatten-deep-object-query-parameter.ts:41
↓ 1 callersFunctionflattenObject
(obj: Record<string, unknown>)
packages/workspace-store/src/request-example/builder/header/serialize-parameter.ts:155
↓ 1 callersFunctionfocusAppWindow
()
projects/scalar-app/entrypoints/electron/main/actions/authorize-oauth2.ts:92
↓ 1 callersFunctionfocusResultPath
(path: Path)
projects/scalar-app/src/features/editor/hooks/use-three-way-merge-editor.ts:295
↓ 1 callersFunctionforcedHotkeySymbolSet
()
packages/components/src/components/ScalarHotkey/formatHotkey.ts:8
↓ 1 callersFunctionformatArrayType
(itemType: string)
packages/api-reference/src/components/Content/Schema/helpers/get-schema-type.ts:8
↓ 1 callersFunctionformatAutogeneratedFileBanner
(generatedAt: string)
packages/validation/src/typegen.ts:90
↓ 1 callersFunctionformatBinaryFile
(file: File)
packages/blocks/src/code-example/helpers/operation-to-har/process-body.ts:187
↓ 1 callersFunctionformatBytesLiteral
(value: string)
packages/snippetz/src/plugins/python/python3/python3.ts:44
↓ 1 callersFunctionformatChangelogEntry
* Converts a multi-line changelog fragment into a single Markdown list entry. * * The first non-empty line becomes the parent list item. Any subsequ
tooling/changelog-generator/src/formatter.ts:26
↓ 1 callersFunctionformatContent
* Convert content to the target format, returning the original string when * no conversion is needed so that YAML comments, custom formatting, and ke
packages/api-reference/src/helpers/download.ts:52
↓ 1 callersFunctionformatDateLabel
(date: Date)
tooling/scripts/src/commands/generate-blog.ts:190
↓ 1 callersFunctionformatErrorPath
(pathValue: ErrorObject['path'] | string | undefined)
packages/postman-to-openapi/scripts/evaluate/run.ts:178
↓ 1 callersFunctionformatHeaderKey
(key: string)
packages/helpers/src/http/normalize-headers.ts:84
↓ 1 callersFunctionformatImport
(entry: string)
packages/snippetz/src/plugins/go/native/native.ts:12
↓ 1 callersFunctionformatJson
(jsonText: string)
packages/snippetz/src/libs/rust.ts:46
↓ 1 callersFunctionformatJson
(json: string)
tooling/scripts/src/commands/packages/format.ts:38
↓ 1 callersFunctionformatPackage
Format a package json file and validate scalar linting rules
tooling/scripts/src/commands/packages/format.ts:114
↓ 1 callersFunctionformatPostRow
(post: BlogPost)
tooling/scripts/src/commands/generate-blog.ts:197
↓ 1 callersFunctionformatRValue
(value: unknown, indent: string)
packages/snippetz/src/plugins/r/httr2/httr2.ts:20
↓ 1 callersFunctionformatRequestCall
(clientVar: string, method: string, url: string, args: string[])
packages/snippetz/src/plugins/python/aiohttp/aiohttp.ts:12
↓ 1 callersFunctionformatTable
(results: Result[])
packages/postman-to-openapi/scripts/evaluate/run.ts:272
↓ 1 callersFunctionformatTypeCommentAsIndentedJsDoc
(indent: string, comment: string)
packages/validation/src/typegen.ts:128
↓ 1 callersFunctionformatWithBiome
(content: string, filePath: string, repoRoot: string)
packages/schemas/scripts/generate-types.ts:78
↓ 1 callersFunctionfreeze
(id: string)
packages/api-reference/src/helpers/lazy-bus.ts:333
↓ 1 callersFunctionfromLanguageExamples
(examples: XLanguageExample | XLanguageExample[] | undefined)
packages/blocks/src/code-example/helpers/get-custom-code-samples.ts:19
↓ 1 callersFunctionfromReadmeSamples
(samples: XReadmeCodeSample[] | undefined)
packages/blocks/src/code-example/helpers/get-custom-code-samples.ts:30
↓ 1 callersFunctiong
(t, e)
documentation/assets/posthog.js:9
↓ 1 callersFunctiongather
( descriptors: ParameterDescriptor[], getValue: (name: string) => string | undefined, getVal
packages/mock-server/src/utils/validate-request.ts:316
↓ 1 callersFunctiongenerateAuthorizationHtml
(redirectUrl: string, deniedUrl: string, title = '', scopes: string[] = [])
packages/mock-server/src/routes/respond-with-authorize-page.ts:114
↓ 1 callersFunctiongenerateBadge
(badge: BadgeConfig, packageName: string)
tooling/scripts/src/commands/generate-readme.ts:295
↓ 1 callersFunctiongenerateBlogFiles
()
tooling/scripts/src/commands/generate-blog.ts:34
↓ 1 callersFunctiongenerateClientOptionsMapping
* Generates the ClientOptions dictionary mapping.
packages/snippetz/scripts/generate-dotnet-enums.ts:239
↓ 1 callersFunctiongenerateClientsDocumentation
* Generates the markdown content for the hiddenClients documentation. * Groups clients by target/language with comments.
packages/snippetz/scripts/generate-markdown-docs.ts:20
↓ 1 callersFunctiongenerateCodeChallenge
(verifier: string, encoding: 'SHA-256' | 'plain')
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts:124
↓ 1 callersFunctiongenerateCodeVerifier
()
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts:112
↓ 1 callersFunctiongenerateComponents
(mappings: Record<string, Record<string, string>>)
packages/icons/scripts/generate-icons.ts:78
↓ 1 callersFunctiongenerateCookiesCode
* Generates code to configure cookies for the HttpClient
packages/snippetz/src/plugins/fsharp/httpclient/httpclient.ts:98
↓ 1 callersFunctiongenerateExports
(mappings: Record<string, Record<string, string>>)
packages/icons/scripts/generate-icons.ts:142
↓ 1 callersFunctiongenerateForPackage
* Generates enums for a specific Java package
packages/snippetz/scripts/generate-java-enums.ts:299
↓ 1 callersFunctiongenerateForPackage
* Generates enums for a specific .NET package
packages/snippetz/scripts/generate-dotnet-enums.ts:321
↓ 1 callersFunctiongenerateGenericContentCode
* Generates code for generic content types
packages/snippetz/src/plugins/fsharp/httpclient/httpclient.ts:142
↓ 1 callersFunctiongenerateHeadersCode
* Generates code to add headers to the HttpRequestMessage
packages/snippetz/src/plugins/fsharp/httpclient/httpclient.ts:86
↓ 1 callersFunctiongenerateHttpRequestMessage
* Generates the HttpRequestMessage initialization code
packages/snippetz/src/plugins/fsharp/httpclient/httpclient.ts:76
↓ 1 callersFunctiongenerateJsonContentCode
* Generates code for JSON content
packages/snippetz/src/plugins/fsharp/httpclient/httpclient.ts:185
↓ 1 callersFunctiongenerateMultipartFormDataCode
* Generates code for multipart/form-data content
packages/snippetz/src/plugins/fsharp/httpclient/httpclient.ts:151
↓ 1 callersFunctiongenerateNamedTypes
(schema: Schema, typeName: string)
packages/schemas/scripts/generate-types.ts:141
↓ 1 callersFunctiongenerateNamespacedFolderTypes
( target: NamespacedFolderTarget, tally: WriteTally, repoRoot: string, )
packages/schemas/scripts/generate-types.ts:262
↓ 1 callersFunctiongeneratePostDataCode
* Generates code to set the request content based on postData
packages/snippetz/src/plugins/fsharp/httpclient/httpclient.ts:113
↓ 1 callersFunctiongenerateReadmeFiles
()
tooling/scripts/src/commands/generate-readme.ts:81
↓ 1 callersFunctiongenerateReadmeForPackage
(root: string, directory: string, packageJson: PackageJson)
tooling/scripts/src/commands/generate-readme.ts:167
↓ 1 callersFunctiongenerateScalarClientEnum
* Generates the ScalarClient enum content.
packages/snippetz/scripts/generate-java-enums.ts:196
← previousnext →2,201–2,300 of 4,087, ranked by callers