forked from loafle/openapi-generator-original
revise invalid spec error message (#8735)
This commit is contained in:
parent
18a6f5a941
commit
ee12a6f7ee
@ -832,9 +832,8 @@ public class DefaultGenerator implements Generator {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<File> generate() {
|
public List<File> generate() {
|
||||||
|
|
||||||
if (openAPI == null) {
|
if (openAPI == null) {
|
||||||
throw new RuntimeException("missing OpenAPI input!");
|
throw new RuntimeException("Issues with the OpenAPI input. Possible causes: invalid/missing spec, malformed JSON/YAML files, etc.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config == null) {
|
if (config == null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user