We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17ad113 commit d32424aCopy full SHA for d32424a
packages/plugins/openapi/src/generator-base.ts
@@ -15,7 +15,14 @@ export abstract class OpenAPIGeneratorBase {
15
abstract generate(): PluginResult;
16
17
protected get includedModels() {
18
- return getDataModels(this.model).filter((d) => !hasAttribute(d, '@@openapi.ignore'));
+ const includeApiIgnored = this.getOption<boolean>('includeApiIgnored', false);
19
+ if (includeApiIgnored) {
20
+ return getDataModels(this.model);
21
+ } else {
22
+ return getDataModels(this.model).filter(
23
+ (d) => !hasAttribute(d, '@@openapi.ignore')
24
+ );
25
+ }
26
}
27
28
protected wrapArray(
0 commit comments