Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion packages/plugins/openapi/src/generator-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ export abstract class OpenAPIGeneratorBase {
abstract generate(): PluginResult;

protected get includedModels() {
return getDataModels(this.model).filter((d) => !hasAttribute(d, '@@openapi.ignore'));
const includeApiIgnored = this.getOption<boolean>('includeApiIgnored', false);
if (includeApiIgnored) {
return getDataModels(this.model);
} else {
return getDataModels(this.model).filter(
(d) => !hasAttribute(d, '@@openapi.ignore')
);
}
}

protected wrapArray(
Expand Down