Skip to content

collectGenericModels

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/libs/parser-core/src/openapi/model-schemas.ts

Build components.schemas from every database-model entity the parse produced. Returns an empty object when the repo has no such models, so callers need no special case.

Signature

ts
function collectGenericModels(entities: Entity[]): Map<string, ModelSource>

Parameters

NameType
entitiesEntity[]

Returns: Map<string, ModelSource>

Was this page helpful?

Download as PDF