Skip to content

Commit ee12a6f

Browse files
authored
revise invalid spec error message (#8735)
1 parent 18a6f5a commit ee12a6f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,9 +832,8 @@ Map<String, Object> buildSupportFileBundle(List<Object> allOperations, List<Obje
832832

833833
@Override
834834
public List<File> generate() {
835-
836835
if (openAPI == null) {
837-
throw new RuntimeException("missing OpenAPI input!");
836+
throw new RuntimeException("Issues with the OpenAPI input. Possible causes: invalid/missing spec, malformed JSON/YAML files, etc.");
838837
}
839838

840839
if (config == null) {

0 commit comments

Comments
 (0)