Skip to content

Commit

Permalink
Merge pull request #27 from remkoboschker/master
Browse files Browse the repository at this point in the history
don't collect model dependencies for oneOf
  • Loading branch information
luisfpg authored Jul 26, 2019
2 parents 715158c + 08e83d9 commit 75ca471
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 207 deletions.
1 change: 0 additions & 1 deletion lib/gen-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export abstract class GenType {
schema = schema as SchemaObject;
(schema.allOf || []).forEach(i => this.collectImports(i, additional));
(schema.anyOf || []).forEach(i => this.collectImports(i, additional));
(schema.oneOf || []).forEach(i => this.collectImports(i, additional));
if (schema.items) {
this.collectImports(schema.items, additional);
}
Expand Down
Loading

0 comments on commit 75ca471

Please sign in to comment.