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 c26164a commit 0e077bdCopy full SHA for 0e077bd
src/openApi/v3/parser/getModelComposition.ts
@@ -30,9 +30,10 @@ export const getModelComposition = (
30
.filter(model => {
31
const hasProperties = model.properties.length;
32
const hasEnums = model.enums.length;
33
+ const hasLink = typeof model.link !== 'undefined' && model.link !== null;
34
const isObject = model.type === 'any';
35
const isDictionary = model.export === 'dictionary';
- const isEmpty = isObject && !hasProperties && !hasEnums;
36
+ const isEmpty = isObject && !hasProperties && !hasEnums && !hasLink;
37
return !isEmpty || isDictionary;
38
})
39
.forEach(model => {
0 commit comments