Skip to content

resolveOpenApiSchemas

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/openapi/schema-resolver.ts

Resolve request/response schemas for a set of endpoints against a ts-morph Project, assembling OpenAPI 3.1 paths (with content.application/json.schema) and the shared components.schemas. Endpoints whose method/type cannot be resolved fall back to a bare response description — they simply carry no schema, never a broken one.

Signature

ts
function resolveOpenApiSchemas(project: Project, endpoints: EndpointInput[], knownModels: Iterable<string> | Record<string, Record<string, unknown>>): OpenApiFragment

Parameters

NameType
projectProject
endpointsEndpointInput[]
knownModels`Iterable

Returns: OpenApiFragment

Was this page helpful?

Download as PDF