You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: swagger-api/swagger-parser#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)
The text was updated successfully, but these errors were encountered:
I successfully generated a code from my spec now, but in order to run the generator with latest swagger-parser was necessary to include explicitly this dependency in openapi-generator/modules/openapi-generator/pom.xml:
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: swagger-api/swagger-parser#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:The text was updated successfully, but these errors were encountered: