UNPKG

openapi-metadata

Version:

Auto-Generate OpenAPI specifications from Typescript decorators

1 lines 529 B
{"version":3,"file":"schema.mjs","sources":["../../src/utils/schema.ts"],"sourcesContent":["/**\n * Returns schema path from a class constructor or a schema name.\n */\nexport function getSchemaPath(model: string | Function): string {\n const modelName = typeof model === \"string\" ? model : model.name;\n return `#/components/schemas/${modelName}`;\n}\n"],"names":[],"mappings":"AAGO,SAAS,cAAc,KAAA,EAAkC;AAC9D,EAAA,MAAM,SAAA,GAAY,OAAO,KAAA,KAAU,QAAA,GAAW,QAAQ,KAAA,CAAM,IAAA;AAC5D,EAAA,OAAO,wBAAwB,SAAS,CAAA,CAAA;AAC1C;;;;"}