mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-18 20:17:05 +00:00
revise invalid spec error message (#8735)
This commit is contained in:
@@ -832,9 +832,8 @@ public class DefaultGenerator implements Generator {
|
||||
|
||||
@Override
|
||||
public List<File> generate() {
|
||||
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user