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 d32424a commit 0d8c504Copy full SHA for 0d8c504
packages/plugins/openapi/src/generator-base.ts
@@ -15,14 +15,9 @@ export abstract class OpenAPIGeneratorBase {
15
abstract generate(): PluginResult;
16
17
protected get includedModels() {
18
- 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
- }
+ const includeOpenApiIgnored = this.getOption<boolean>('includeOpenApiIgnored', false);
+ const models = getDataModels(this.model);
+ return includeOpenApiIgnored ? models : models.filter((d) => !hasAttribute(d, '@@openapi.ignore'));
26
}
27
28
protected wrapArray(
0 commit comments