Skip to content

Commit

Permalink
[Core] Resolve Inline Models (#736)
Browse files Browse the repository at this point in the history
* Add InlineModelResolver.java

* fix inline schema for OAS2 body parameter

* skip warning, fix MapSchema cast error
  • Loading branch information
antihax authored and wing328 committed Aug 9, 2018
1 parent 9920c43 commit a0984a9
Show file tree
Hide file tree
Showing 3 changed files with 1,547 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,8 @@ public List<File> generate() {
configureOpenAPIInfo();

// resolve inline models
//InlineModelResolver inlineModelResolver = new InlineModelResolver();
//inlineModelResolver.flatten(openAPI);
InlineModelResolver inlineModelResolver = new InlineModelResolver();
inlineModelResolver.flatten(openAPI);

List<File> files = new ArrayList<File>();
// models
Expand Down
Loading

0 comments on commit a0984a9

Please # to comment.