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
  • #4563
Closed
Open
Issue created Nov 21, 2019 by William Cheng@wing328Contributor

Unalias schema in getTypeDeclaration when not generating model for alias

Description

Defining a schema for an array type, and referencing it as the items type in another array doesn't generate valid code. It happened for me in Java and go-experimental that I'm using, but might be the case for other languages as well.

https://github.com/OpenAPITools/openapi-generator/pull/4527 fixes the issue for Go and Java. We will need to do it for all other generators.

If anyone wants to help out, please reply to let us know.

openapi-generator version

Latest master

OpenAPI declaration file content or url

https://github.com/OpenAPITools/openapi-generator/issues/4362#issue-517130622

Related issues/PRs

https://github.com/OpenAPITools/openapi-generator/pull/4527

Assignee
Assign to
Time tracking