added inline model resolver

This commit is contained in:
Tony Tam 2015-10-16 18:21:34 -07:00
parent 9508579eed
commit bfa4303e6e

View File

@ -126,6 +126,10 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
String basePath = hostBuilder.toString(); String basePath = hostBuilder.toString();
// resolve inline models
InlineModelResolver inlineModelResolver = new InlineModelResolver();
inlineModelResolver.flatten(swagger);
List<Object> allOperations = new ArrayList<Object>(); List<Object> allOperations = new ArrayList<Object>();
List<Object> allModels = new ArrayList<Object>(); List<Object> allModels = new ArrayList<Object>();