MCPcopy Index your code

hub / github.com/scalar/scalar / functions

Functions4,087 in github.com/scalar/scalar

↓ 1,634 callersFunctionmount
(mountingEl = el)
packages/api-reference/src/esm.ts:36
↓ 995 callersMethodget
* Get a single item by ID.
packages/mock-server/src/libs/store.ts:21
↓ 819 callersFunctioncoerceValue
(schema: T, value: unknown)
packages/workspace-store/src/schemas/typebox-coerce.ts:25
↓ 781 callersFunctionoptional
(schema: S, options?: Documentation)
packages/validation/src/schema.ts:303
↓ 724 callersFunctionstring
(options?: Documentation & { default?: string })
packages/validation/src/schema.ts:194
↓ 669 callersMethodmap
Maps ScalarProperties to ScalarConfiguration. @param properties the ScalarProperties to map @return the mapped ScalarConfiguration
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/internal/ScalarConfigurationMapper.java:26
↓ 568 callersFunctionmount
(mountingEl: HTMLElement | null = el)
packages/api-client/src/v2/features/modal/helpers/create-api-client-modal.ts:169
↓ 539 callersFunctioncreateWorkspaceStore
(workspaceProps?: WorkspaceProps)
packages/workspace-store/src/client.ts:643
↓ 509 callersFunctiongetResolvedRef
( node: NodeInput<Node>, transform: (node: RefNode<Node>) => Node = defaultTransform, )
packages/workspace-store/src/helpers/get-resolved-ref.ts:26
↓ 469 callersFunctionobject
( properties: Properties, options?: Documentation, )
packages/validation/src/schema.ts:259
↓ 365 callersFunctioncoerce
( schema: S, value: unknown, cache: WeakMap<object, Map<Schema, unknown>> = new WeakMap(), lazyCache:
packages/validation/src/coerce.ts:353
↓ 264 callersFunctionliteral
(value: Value)
packages/validation/src/schema.ts:310
↓ 255 callersFunctionvalidate
( schema: Schema | undefined, value: unknown, cache: WeakMap<object, Set<Schema>> = new WeakMap(), )
packages/validation/src/validate.ts:159
↓ 213 callersFunctionresolve
( value?: string | null, options?: { /** * Fetch function to use instead of the global fetch. Use
packages/import/src/resolve.ts:8
↓ 190 callersFunctioncreateMockServer
(configuration: MockServerOptions)
packages/mock-server/src/create-mock-server.ts:26
↓ 169 callersFunctioncreateWorkspaceEventBus
(options: EventBusOptions = {})
packages/workspace-store/src/events/bus.ts:207
↓ 169 callersMethodtoString
* Returns a string representation of the queue. * @returns Elements of the queue separated by ' -> '.
packages/helpers/src/queue/queue.ts:109
↓ 149 callersFunctiongetPathItemOperation
( pathItem: NodeInput<PathItemObject> | undefined, method: HttpMethod, )
packages/workspace-store/src/helpers/for-each-path-item-operation.ts:22
↓ 146 callersFunctionlazy
(schema: S)
packages/validation/src/schema.ts:315
↓ 146 callersFunctionnumber
(options?: Documentation & { default?: number })
packages/validation/src/schema.ts:187
↓ 140 callersFunctionserveExample
(givenConfiguration?: Partial<HtmlRenderingConfiguration>)
packages/api-reference/test/utils/serve-example.ts:37
↓ 134 callersFunctionbundle
(input: UnknownObject | string, config: Config)
packages/json-magic/src/bundle/bundle.ts:499
↓ 134 callersFunctiongetHash
(value: string)
packages/json-magic/src/bundle/value-generator.ts:18
↓ 134 callersFunctionisObject
(value: unknown)
packages/helpers/src/object/is-object.ts:20
↓ 132 callersFunctionrecord
( key: Key, value: Value, options?: Documentation, )
packages/validation/src/schema.ts:247
↓ 129 callersFunctiongetExampleFromSchema
( schema: SchemaObject, options?: GetExampleFromSchemaOptions, { level = 0, parentSchema, na
packages/workspace-store/src/request-example/builder/helpers/get-example-from-schema.ts:754
↓ 124 callersFunctioncreateAuthStore
({ hooks }: CreateAuthStoreOptions = {})
packages/workspace-store/src/entities/auth/index.ts:119
↓ 123 callersFunctioncreateLegacyData
( options: { /** Shorthand for collection info.title (default: 'Test API') */ title?: string /**
packages/oas-utils/src/migrations/migrate-to-indexdb.test.ts:221
↓ 123 callersFunctiongetOpenApiDocument
(store: WorkspaceStore, name: string)
packages/workspace-store/test/helpers.ts:54
↓ 123 callersFunctiontransformLegacyDataToWorkspace
(legacyData: { arrays: v_2_5_0['DataArray'] records: v_2_5_0['DataRecord'] })
packages/oas-utils/src/migrations/migrate-to-indexdb.ts:159
↓ 122 callersFunctionarray
(items: Item, options?: Documentation)
packages/validation/src/schema.ts:240
↓ 118 callersFunctionunion
( schemas: Schemas, options?: Documentation, )
packages/validation/src/schema.ts:273
↓ 115 callersFunctioncreateMagicProxy
( target: T, options?: Partial<{ showInternal: boolean }>, args: { /** * The root object for re
packages/json-magic/src/magic-proxy/proxy.ts:54
↓ 105 callersFunctionpick
(pool: readonly T[])
packages/workspace-store/src/request-example/functions.ts:103
↓ 104 callersFunctionboolean
(options?: Documentation & { default?: boolean })
packages/validation/src/schema.ts:201
↓ 98 callersFunctioncreateHarRequest
(url: string)
packages/blocks/src/code-example/helpers/operation-to-har/process-parameters.test.ts:9
↓ 97 callersFunctionunpackProxyObject
(input: T, { depth = 0 }: { depth?: number | null } = {})
packages/workspace-store/src/helpers/unpack-proxy.ts:22
↓ 95 callersFunctionrunProcessParameters
(args: { harRequest: HarRequest parameters: OperationObject['parameters'] example?: string | undef
packages/blocks/src/code-example/helpers/operation-to-har/process-parameters.test.ts:20
↓ 90 callersFunctionmountInput
(props: Partial<InstanceType<typeof CodeInputLite>['$props']> = {})
packages/api-client/src/v2/components/code-input/CodeInputLite.test.ts:43
↓ 86 callersFunctionintersection
( schemas: Schemas, options?: Documentation, )
packages/validation/src/schema.ts:292
↓ 84 callersFunctionvalidate
( value: string | UnknownObject | Filesystem, options?: ValidateOptions, )
packages/openapi-parser/src/utils/validate.ts:37
↓ 78 callersFunctionbuildRequestParameters
( /** All parameters */ parameters: ReferenceType<ParameterObject>[] = [], /** The key of the current ex
packages/workspace-store/src/request-example/builder/header/build-request-parameters.ts:39
↓ 76 callersMethoddelete
* Delete an item from a collection. * Returns null if the item is not found.
packages/mock-server/src/libs/store.ts:65
↓ 73 callersFunctionextractServerFromPath
(path = '')
packages/helpers/src/url/extract-server-from-path.ts:27
↓ 72 callersFunctionexecute
(key: string, fn: () => unknown | Promise<unknown>)
packages/helpers/src/general/debounce.ts:75
↓ 71 callersFunctionisOpenApiDocument
(value: unknown)
packages/workspace-store/src/schemas/type-guards.ts:13
↓ 70 callersFunctiondiff
(doc1: Record<string, unknown>, doc2: T)
packages/json-magic/src/diff/diff.ts:52
↓ 70 callersFunctionfn
( options?: Documentation, )
packages/validation/src/schema.ts:232
↓ 66 callersFunctioncompose
(...args: A)
packages/workspace-store/src/schemas/compose.ts:6
↓ 66 callersFunctionextractSecuritySchemeSecrets
( // Include the config fields scheme: SecuritySchemeObject & DeepPartial<SecurityScheme>, authStore: Au
packages/workspace-store/src/request-example/context/security/extract-security-scheme-secrets.ts:215
↓ 65 callersFunctionwithHook
( event: T, fn: (args: ApiReferenceEvents[T]) => unknown | Promise<unknown>, hooks: Hooks, )
packages/api-client/src/v2/workspace-events.ts:28
↓ 63 callersFunctioncreateDocument
* Helper to create a minimal OpenApiDocument for testing.
packages/workspace-store/src/mutators/server.test.ts:23
↓ 62 callersFunctionextractSecuritySchemeSecrets
( // Include the config fields scheme: SecuritySchemeObject & DeepPartial<SecurityScheme>, authStore: Au
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/extract-security-scheme-secrets.ts:207
↓ 61 callersFunctionprocessBody
({ requestBody, contentType, example, requestBodyCompositionSelection, }: ProcessBodyProps)
packages/blocks/src/code-example/helpers/operation-to-har/process-body.ts:178
↓ 60 callersFunctionparseCurlCommand
(curlCommand: string)
projects/scalar-app/src/features/command-palette/helpers/parse-curl.ts:6
↓ 59 callersMethodcreate
* Create a new item in a collection. * Auto-generates an ID if not provided.
packages/mock-server/src/libs/store.ts:29
↓ 59 callersFunctioncreateSidebarState
( items: MaybeRefOrGetter<T[]>, options?: SidebarStateOptions, )
packages/sidebar/src/helpers/create-sidebar-state.ts:71
↓ 58 callersFunctiongetSchemaType
(valueOrRef: SchemaObject | ReferenceType<SchemaObject>)
packages/api-reference/src/components/Content/Schema/helpers/get-schema-type.ts:46
↓ 57 callersFunctionhandleCustomFetch
(req: IpcFetchRequest, sender?: IpcSender)
projects/scalar-app/entrypoints/electron/main/actions/handle-custom-fetch.ts:44
↓ 56 callersFunctionupgradeFromTwoToThree
(originalSpecification: UnknownObject)
packages/openapi-upgrader/src/2.0-to-3.0/upgrade-from-two-to-three.ts:197
↓ 55 callersFunctionisObject
(value: unknown)
packages/validation/src/helpers/is-object.ts:24
↓ 54 callersFunctioncreateDetectChangesProxy
( target: T, options?: { hooks: Partial<{ onBeforeChange: OnBeforeChangeHook onAfterChange
packages/workspace-store/src/helpers/detect-changes-proxy.ts:32
↓ 54 callersFunctionuseAuth
()
projects/scalar-app/src/hooks/use-auth.ts:302
↓ 53 callersFunctionsendRequest
({ isUsingProxy, requestPayload, request, plugins = [], customFetch = fetch, }: { isUsingProxy: bo
packages/api-client/src/v2/blocks/operation-block/helpers/send-request.ts:70
↓ 52 callersFunctionfetchUrls
(config?: FetchConfig & Partial<{ limit: number | null }>)
packages/json-magic/src/bundle/plugins/fetch-urls/index.ts:97
↓ 51 callersMethodclear
* Clear a specific collection or all collections.
packages/mock-server/src/libs/store.ts:78
↓ 51 callersFunctioncreateDocument
(initial?: Partial<OpenApiDocument>)
packages/workspace-store/src/mutators/operation/operation.test.ts:19
↓ 51 callersFunctioncreateFactory
(overrides: Partial<RequestFactory> = {})
packages/workspace-store/src/request-example/builder/build-request.test.ts:9
↓ 51 callersFunctioncreateParameter
( overrides: Partial<ExtendedParameter> & Pick<ExtendedParameter, 'name' | 'in' | 'value'>, examples?: Rec
packages/workspace-store/src/request-example/builder/header/build-request-parameters.test.ts:15
↓ 50 callersFunctionauthorizeOauth2
( flows: OAuthFlowsObjectSecret, type: keyof OAuthFlowsObjectSecret, selectedScopes: string[], /** We
packages/api-client/src/v2/blocks/scalar-auth-selector-block/helpers/oauth.ts:149
↓ 50 callersFunctiondocumentWith
(path: string, method: string, operation: OpenAPIV3_1.OperationObject)
packages/mock-server/src/utils/validate-request.test.ts:8
↓ 50 callersFunctiongenerateTypes
(schema: Schema, options?: GenerateTypesOptions)
packages/validation/src/typegen.ts:46
↓ 50 callersFunctiongetActiveOpenApiDocument
(store: WorkspaceStore)
packages/workspace-store/test/helpers.ts:47
↓ 49 callersFunctiongetDocument
(version?: string)
packages/workspace-store/src/client.test.ts:18
↓ 49 callersFunctiongetOperationFromCurl
(curl: string, exampleKey = 'curl')
projects/scalar-app/src/features/command-palette/helpers/get-operation-from-curl.ts:175
↓ 48 callersFunctionparseSetCookie
(setCookieValue: string)
packages/api-client/src/v2/blocks/response-block/helpers/parse-set-cookie.ts:14
↓ 48 callersFunctionresolveReferencePath
(base: string, relativePath: string)
packages/json-magic/src/helpers/resolve-reference-path.ts:21
↓ 48 callersFunctionunwrap
(factory: RequestFactory, options: Parameters<typeof buildRequest>[1])
packages/workspace-store/src/request-example/builder/build-request.test.ts:25
↓ 47 callersFunctionextractFilename
(contentDisposition: string)
packages/api-client/src/v2/blocks/response-block/helpers/extract-filename.ts:15
↓ 47 callersFunctionmountWithProps
( custom: Partial<{ environments: string[] activeEnvironment: string }> = {}, )
packages/api-client/src/v2/blocks/scalar-address-bar-block/components/EnvironmentSelector.test.ts:10
↓ 47 callersFunctionobjectToString
(data: unknown, level = 0)
packages/snippetz/src/libs/php.ts:23
↓ 47 callersFunctionsanitize
(definition: AnyObject)
packages/openapi-parser/src/utils/transform/sanitize.ts:18
↓ 46 callersFunctioncreateMockDocument
(overrides: Partial<OpenApiDocument> = {})
projects/scalar-app/src/features/command-palette/components/CommandPaletteRequest.test.ts:23
↓ 46 callersFunctionisUrl
(input: string)
projects/scalar-app/src/helpers/is-url.ts:3
↓ 46 callersMethodsetValue
Sets the value of the HTTP header. @param value the header value
integrations/java/scalar-core/src/main/java/com/scalar/maven/core/authentication/schemes/ScalarApiKeySecurityScheme.java:74
↓ 46 callersFunctiontypeCommentWithExample
(description: string, example: { language: string; body: string })
packages/schemas/src/extensions/type-comment.ts:21
↓ 45 callersFunctioncreateCookie
( name: string, value: string, options: Partial<Omit<XScalarCookie, 'name' | 'value'>> = {}, )
packages/workspace-store/src/request-example/builder/header/build-request-cookie-header.test.ts:10
↓ 44 callersFunctioncreateDocument
(initial?: Partial<OpenApiDocument>)
packages/workspace-store/src/mutators/auth.test.ts:21
↓ 44 callersFunctioncreateMockWorkspaceStore
(documents: Record<string, Record<string, unknown>> = {})
projects/scalar-app/src/features/command-palette/components/CommandPaletteRequest.test.ts:12
↓ 44 callersFunctionisTypeObject
(schema: unknown)
packages/api-reference/src/components/Content/Schema/helpers/is-type-object.ts:6
↓ 44 callersFunctionuseLoadingState
()
packages/components/src/components/ScalarLoading/useLoadingState.ts:10
↓ 43 callersFunctionapi
(wrapper: ReturnType<typeof mountInput>)
packages/api-client/src/v2/components/code-input/CodeInputLite.test.ts:60
↓ 43 callersFunctioncreateTab
(overrides?: Partial<Tab>)
packages/workspace-store/src/mutators/tabs.test.ts:25
↓ 43 callersFunctiondeepClone
(value: T, hash = new WeakMap())
packages/workspace-store/src/helpers/deep-clone.ts:20
↓ 43 callersFunctiongetExample
( param: ParameterObject | RequestBodyObject | MediaTypeObject, exampleName: string | undefined, content
packages/workspace-store/src/request-example/builder/helpers/get-example.ts:45
↓ 43 callersFunctionjoin
(...paths: string[])
packages/helpers/src/node/path.ts:124
↓ 43 callersFunctionslugify
(v: string, options: SlugifyOptions = {})
packages/helpers/src/string/slugify.ts:76
↓ 42 callersFunctionany
(options?: Documentation)
packages/validation/src/schema.ts:220
↓ 42 callersFunctioncallback
(_: string, match: string)
packages/helpers/src/regex/replace-variables.ts:15
↓ 42 callersFunctioncreateMockReader
(chunks: string[], shouldError = false)
packages/api-client/src/v2/blocks/response-block/components/ResponseBodyStreaming.test.ts:21
next →1–100 of 4,087, ranked by callers