Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #2551
Closed
Open
Issue created Mar 30, 2019 by Administrator@rootContributor

[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)
Assignee
Assign to
Time tracking