Skip to content

resolveOpenApiSchemasFromDir

reference
1 min readUpdated

Kind: Function

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

Resolve schemas for endpoints against a repo directory. Scopes the ts-morph project to the endpoints' controller files + their imports (memory-bounded); falls back to a whole-dir glob only when no file paths are available.

Signature

ts
function resolveOpenApiSchemasFromDir(rootDir: string, endpoints: EndpointInput[], knownModels: Iterable<string> | Record<string, Record<string, unknown>>): OpenApiFragment

Parameters

NameType
rootDirstring
endpointsEndpointInput[]
knownModels`Iterable

Returns: OpenApiFragment

Was this page helpful?

Download as PDF