mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-19 05:09:11 +00:00
Various improvements (#653)
* improve validation error message
* minor improvement to qt5 c++ server
* fix invalid spec (causing shippable failure)
* Revert "minor improvement to qt5 c++ server"
This reverts commit 56f356cc51.
This commit is contained in:
@@ -535,7 +535,10 @@ public class CodegenConfigurator implements Serializable {
|
||||
}
|
||||
|
||||
if (this.isValidateSpec()) {
|
||||
SpecValidationException ex = new SpecValidationException("Specification has failed validation.");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("There were issues with the specification. The option can be disabled by passing false to skipValidateSpec (Maven/Gradle) or --skip-validate-spec (CLI).");
|
||||
sb.append(System.lineSeparator());
|
||||
SpecValidationException ex = new SpecValidationException(sb.toString());
|
||||
ex.setErrors(validationMessages);
|
||||
ex.setWarnings(warnings);
|
||||
throw ex;
|
||||
|
||||
Reference in New Issue
Block a user