Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/samchungy/zod-openapi
/ functions
Functions
50 in github.com/samchungy/zod-openapi
⨍
Functions
50
◇
Types & classes
28
↓ 119 callers
Function
createSchema
( schema: core.$ZodType, ctx: { registry?: ComponentRegistry; io?: 'input' | 'output'; opts?:
src/create/schema/schema.ts:34
↓ 70 callers
Function
createRegistry
( components?: ZodOpenApiComponentsObject, )
src/create/components.ts:206
↓ 35 callers
Function
createComponents
( registry: ComponentRegistry, opts: CreateDocumentOptions, openapiVersion?: OpenApiVersion, )
src/create/components.ts:1011
↓ 11 callers
Function
createDocument
( zodOpenApiObject: ZodOpenApiObject, opts: CreateDocumentOptions = {}, )
src/create/document.ts:266
↓ 11 callers
Function
createOutputContext
()
src/testing/ctx.ts:7
↓ 10 callers
Function
createContent
( content: ZodOpenApiContentObject, ctx: { registry: ComponentRegistry; io: 'input' | 'output';
src/create/content.ts:92
↓ 8 callers
Function
isAnyZodType
(schema: unknown)
src/zod.ts:4
↓ 8 callers
Function
isISpecificationExtension
( key: string, )
src/create/specificationExtension.ts:3
↓ 8 callers
Function
isRequired
( zodType: $ZodType, io: 'input' | 'output', )
src/create/object.ts:28
↓ 7 callers
Function
renameComponents
( components: Record<string, core.JSONSchema.JSONSchema>, outputIds: Map<string, string>, ctx: { reg
src/create/schema/rename.ts:15
↓ 6 callers
Function
createInputContext
()
src/testing/ctx.ts:21
↓ 6 callers
Function
createMediaTypeObject
( mediaType: ZodOpenApiMediaTypeObject, ctx: { registry: ComponentRegistry; io: 'input' | 'output'
src/create/content.ts:16
↓ 6 callers
Function
unwrapZodObject
( zodType: $ZodTypes, io: 'input' | 'output', path: string[], )
src/create/object.ts:3
↓ 5 callers
Function
validate
( ctx: ZodOpenApiOverrideContext, opts: CreateDocumentOptions, previousContext: PreviousContext, )
src/create/schema/override.ts:97
↓ 3 callers
Function
createEncodingProperty
( encodingProperty: ZodOpenApiEncodingPropertyObject, ctx: { registry: ComponentRegistry; io: 'inp
src/create/content.ts:134
↓ 3 callers
Function
createHeaders
( headers: ZodOpenApiHeadersObject | undefined, registry: ComponentRegistry, path: string[], )
src/create/headers.ts:9
↓ 3 callers
Function
createManualParameters
( parameters: | Array<$ZodType | oas32.ParameterObject | oas32.ReferenceObject> | undefined, regis
src/create/parameters.ts:11
↓ 3 callers
Function
createPaths
( paths: ZodOpenApiPathsObject | undefined, registry: ComponentRegistry, path: string[], )
src/create/paths.ts:73
↓ 3 callers
Function
deleteInvalidJsonSchemaFields
( jsonSchema: core.JSONSchema.JSONSchema, )
src/create/schema/schema.ts:92
↓ 2 callers
Function
createCallbacks
( callbacks: ZodOpenApiCallbacksObject | undefined, registry: ComponentRegistry, path: string[], )
src/create/callbacks.ts:7
↓ 2 callers
Function
createEncodingObject
( encoding: ZodOpenApiEncodingObject, ctx: { registry: ComponentRegistry; io: 'input' | 'output';
src/create/content.ts:112
↓ 2 callers
Function
createExamples
( examples: ZodOpenApiExamplesObject | undefined, registry: ComponentRegistry, path: string[], )
src/create/examples.ts:6
↓ 2 callers
Function
createIOSchemas
(ctx: { registry: ComponentRegistry; io: 'input' | 'output'; opts: CreateDocumentOptions; openapiVersi
src/create/components.ts:964
↓ 2 callers
Function
createLinks
( links: ZodOpenApiLinksObject | undefined, registry: ComponentRegistry, path: string[], )
src/create/links.ts:6
↓ 2 callers
Function
createOperation
( operation: ZodOpenApiOperationObject, registry: ComponentRegistry, path: string[], )
src/create/paths.ts:13
↓ 2 callers
Function
createParameters
( requestParams: ZodOpenApiParameters | undefined, registry: ComponentRegistry, path: string[], )
src/create/parameters.ts:41
↓ 2 callers
Function
createResponses
( responses: ZodOpenApiResponsesObject | undefined, registry: ComponentRegistry, path: string[], )
src/create/responses.ts:10
↓ 2 callers
Function
createSchemas
( schemas: T, ctx: { registry: ComponentRegistry; io: 'input' | 'output'; opts: CreateDocument
src/create/schema/schema.ts:101
↓ 2 callers
Function
satisfiesVersion
( test: OpenApiVersion, against: OpenApiVersion, )
src/openapi.ts:13
↓ 1 callers
Function
copyDTs
(src: string, dest: string)
scripts/copyTypes.ts:6
↓ 1 callers
Function
createManualSchemas
(registry: ComponentRegistry)
src/create/components.ts:1001
↓ 1 callers
Function
deleteFolderRecursive
(folderPath: string)
scripts/copyTypes.ts:64
↓ 1 callers
Function
deleteZodOpenApiMeta
(jsonSchema: core.JSONSchema.JSONSchema)
src/create/schema/schema.ts:86
↓ 1 callers
Function
isDependencyPure
( componentDependencies: Map<string, ComponentDependencies>, stringifiedComponents: Map<string, string>,
src/create/schema/rename.ts:79
↓ 1 callers
Function
main
()
scripts/copyTypes.ts:81
↓ 1 callers
Function
registerCallbacks
( callbacks: ZodOpenApiComponentsObject['callbacks'], registry: ComponentRegistry, )
src/create/components.ts:891
↓ 1 callers
Function
registerExamples
( examples: ZodOpenApiComponentsObject['examples'], registry: ComponentRegistry, )
src/create/components.ts:951
↓ 1 callers
Function
registerHeaders
( headers: ZodOpenApiComponentsObject['headers'], registry: ComponentRegistry, )
src/create/components.ts:831
↓ 1 callers
Function
registerLinks
( links: ZodOpenApiComponentsObject['links'], registry: ComponentRegistry, )
src/create/components.ts:936
↓ 1 callers
Function
registerParameters
( parameters: ZodOpenApiComponentsObject['parameters'], registry: ComponentRegistry, )
src/create/components.ts:806
↓ 1 callers
Function
registerPathItems
( pathItems: ZodOpenApiComponentsObject['pathItems'], registry: ComponentRegistry, )
src/create/components.ts:906
↓ 1 callers
Function
registerRequestBodies
( requestBodies: ZodOpenApiComponentsObject['requestBodies'], registry: ComponentRegistry, )
src/create/components.ts:867
↓ 1 callers
Function
registerResponses
( responses: ZodOpenApiComponentsObject['responses'], registry: ComponentRegistry, )
src/create/components.ts:848
↓ 1 callers
Function
registerSchemas
( schemas: ZodOpenApiComponentsObject['schemas'], registry: ComponentRegistry, )
src/create/components.ts:779
↓ 1 callers
Function
registerSecuritySchemes
( securitySchemes: ZodOpenApiComponentsObject['securitySchemes'], registry: ComponentRegistry, )
src/create/components.ts:921
Function
a
()
src/create/schema/tests/lazy.test.ts:13
Function
cycle
()
src/create/components.test.ts:950
Function
foo
()
src/create/components.test.ts:27
Function
override
(ctx)
src/create/schema/override.ts:14
Function
override
(context)
src/create/schema/schema.ts:140