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