Skip to content

Commit 0e077bd

Browse files
committed
attempt to fix erroniouns any's
1 parent c26164a commit 0e077bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/openApi/v3/parser/getModelComposition.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ export const getModelComposition = (
3030
.filter(model => {
3131
const hasProperties = model.properties.length;
3232
const hasEnums = model.enums.length;
33+
const hasLink = typeof model.link !== 'undefined' && model.link !== null;
3334
const isObject = model.type === 'any';
3435
const isDictionary = model.export === 'dictionary';
35-
const isEmpty = isObject && !hasProperties && !hasEnums;
36+
const isEmpty = isObject && !hasProperties && !hasEnums && !hasLink;
3637
return !isEmpty || isDictionary;
3738
})
3839
.forEach(model => {

0 commit comments

Comments
 (0)