[BUG] Failure to build master branch due to a failling test
Created by: cvgaviao
I have cloned the openapi-generator today in order to test it with a snapshot version of swagger-parser containing a patch to an issue that bitten my spec file: https://github.com/swagger-api/swagger-parser/issues/1063
So, I have changed the swagger-parser version in the master pom and tried to build.
But I'm getting a failure in this test class: org.openapitools.codegen.java.JavaModelTest
on both maven or eclipse testng run:
org.openapitools.codegen.SpecValidationException: There were issues with the specification. The option can be disabled via validateSpec (Maven/Gradle) or --skip-validate-spec (CLI).
| Error count: 1, Warning count: 0
Errors:
-attribute paths.'/pet/findByStatus'(get).parameters.[status].schemas.default is not of type `array`
at org.openapitools.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:615)
at org.openapitools.codegen.java.JavaModelTest.generateModel(JavaModelTest.java:1230)