mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
added resolve option for #903
This commit is contained in:
parent
498a400d4e
commit
f7a07f72b8
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user