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
tsfunction resolveOpenApiSchemas(project: Project, endpoints: EndpointInput[], knownModels: Iterable<string> | Record<string, Record<string, unknown>>): OpenApiFragment
Parameters
| Name | Type |
|---|---|
project | Project |
endpoints | EndpointInput[] |
knownModels | `Iterable |
Returns: OpenApiFragment
Was this page helpful?