mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
Resolve inline models before preprocess (#1761)
This commit is contained in:
parent
177deb918a
commit
5f2d79b669
@ -878,13 +878,13 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
|||||||
throw new RuntimeException("missing config!");
|
throw new RuntimeException("missing config!");
|
||||||
}
|
}
|
||||||
|
|
||||||
configureGeneratorProperties();
|
|
||||||
configureOpenAPIInfo();
|
|
||||||
|
|
||||||
// resolve inline models
|
// resolve inline models
|
||||||
InlineModelResolver inlineModelResolver = new InlineModelResolver();
|
InlineModelResolver inlineModelResolver = new InlineModelResolver();
|
||||||
inlineModelResolver.flatten(openAPI);
|
inlineModelResolver.flatten(openAPI);
|
||||||
|
|
||||||
|
configureGeneratorProperties();
|
||||||
|
configureOpenAPIInfo();
|
||||||
|
|
||||||
List<File> files = new ArrayList<File>();
|
List<File> files = new ArrayList<File>();
|
||||||
// models
|
// models
|
||||||
List<String> filteredSchemas = ModelUtils.getSchemasUsedOnlyInFormParam(openAPI);
|
List<String> filteredSchemas = ModelUtils.getSchemasUsedOnlyInFormParam(openAPI);
|
||||||
|
Loading…
Reference in New Issue
Block a user