openapi-metadata
Version:
Auto-Generate OpenAPI specifications from Typescript decorators
1 lines • 1.09 kB
Source Map (JSON)
{"version":3,"file":"api-exclude.mjs","sources":["../../src/decorators/api-exclude.ts"],"sourcesContent":["import { ExcludeMetadataStorage } from \"../metadata/exclude.js\";\n\n/**\n * Exclude this Controller from the generated schema.\n * Useful when working with framework integrations that autoload controllers.\n */\nexport function ApiExcludeController(): ClassDecorator {\n return (target) => {\n ExcludeMetadataStorage.defineMetadata(target, true);\n };\n}\n\n/**\n * Exclude this Operation from the generated schema.\n * Useful when working with framework integrations that autoload controllers.\n */\nexport function ApiExcludeOperation(): MethodDecorator {\n return (target, propertyKey) => {\n ExcludeMetadataStorage.defineMetadata(target, true, propertyKey);\n };\n}\n"],"names":[],"mappings":";;AAMO,SAAS,oBAAA,GAAuC;AACrD,EAAA,OAAO,CAAC,MAAA,KAAW;AACjB,IAAA,sBAAA,CAAuB,cAAA,CAAe,QAAQ,IAAI,CAAA;AAAA,EACpD,CAAA;AACF;AAMO,SAAS,mBAAA,GAAuC;AACrD,EAAA,OAAO,CAAC,QAAQ,WAAA,KAAgB;AAC9B,IAAA,sBAAA,CAAuB,cAAA,CAAe,MAAA,EAAQ,IAAA,EAAM,WAAW,CAAA;AAAA,EACjE,CAAA;AACF;;;;"}