forked from loafle/openapi-generator-original
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");
|
throw new BadRequestException(400, "No swagger specification was supplied");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
swagger = new SwaggerParser().read(node);
|
swagger = new SwaggerParser().read(node, true);
|
||||||
}
|
}
|
||||||
if (swagger == null) {
|
if (swagger == null) {
|
||||||
throw new BadRequestException(400, "The swagger specification supplied was not valid");
|
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");
|
throw new BadRequestException(400, "No swagger specification was supplied");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
swagger = new SwaggerParser().read(node);
|
swagger = new SwaggerParser().read(node, true);
|
||||||
}
|
}
|
||||||
if (swagger == null) {
|
if (swagger == null) {
|
||||||
throw new BadRequestException(400, "The swagger specification supplied was not valid");
|
throw new BadRequestException(400, "The swagger specification supplied was not valid");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user