added resolve option for #903

This commit is contained in:
Tony Tam 2015-07-20 23:31:49 -07:00
parent 498a400d4e
commit f7a07f72b8

View File

@ -37,7 +37,7 @@ public class Generator {
throw new BadRequestException(400, "No swagger specification was supplied");
}
} else {
swagger = new SwaggerParser().read(node);
swagger = new SwaggerParser().read(node, true);
}
if (swagger == null) {
throw new BadRequestException(400, "The swagger specification supplied was not valid");
@ -97,7 +97,7 @@ public class Generator {
throw new BadRequestException(400, "No swagger specification was supplied");
}
} else {
swagger = new SwaggerParser().read(node);
swagger = new SwaggerParser().read(node, true);
}
if (swagger == null) {
throw new BadRequestException(400, "The swagger specification supplied was not valid");