Skip to content

Commit bf96a0e

Browse files
committed
remove defintions if they're still left over
1 parent a900c56 commit bf96a0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Convertor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ class Convertor {
8787

8888
this.removeEmpty(this.schema)
8989

90+
// force remove definitions
91+
if (this.schema.definitions)
92+
delete this.schema.definitions
93+
9094
if (Object.keys(this.components).includes('main') === false) {
9195
Object.assign(this.components.schemas, {'main': this.schema})
9296
} else {

0 commit comments

Comments
 (0)