Classes

Functions

f
OpenApiPlugin(options?: OpenApiPluginOptions): IPlugin

Creates an OpenAPI plugin that auto-generates OpenAPI 3.1 documentation from registered routes and serves it (with optional Swagger UI).

f
zodToOpenApi(schema: unknown): OpenApiSchemaObject

Convenience function for one-off Zod to OpenAPI conversion.

Interfaces

I
IOpenApiService

Service for generating and retrieving OpenAPI 3.1 specifications.

I
OpenApiGeneratorOptions

Options for OpenAPI document generation.

I
OpenApiOperation

OpenAPI operation definition.

I
OpenApiParameter

OpenAPI parameter definition.

I
OpenApiPluginOptions

Options for the OpenAPI plugin.

I
OpenApiSchemaObject

OpenAPI 3.1 schema object.

I
OpenApiServiceOptions

Options for the OpenAPI service.

I
SwaggerUiOptions

Options for Swagger UI HTML generation.

Type Aliases

T
SchemaIo = "input" | "output"

Which side of a schema a document site is describing.

T
SchemaNodeHook = (schema: unknown) => OpenApiSchemaObject | undefined

Consulted for every schema ZodToOpenApi.transform is about to convert — the top-level one AND every sub-schema it recurses into.