Resolve inline models before preprocess (#1761)

This commit is contained in:
Akihito Nakano 2018-12-28 12:13:30 +09:00 committed by William Cheng
parent 177deb918a
commit 5f2d79b669

View File

@ -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);