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
  • #1749
Closed
Open
Issue created Dec 24, 2018 by Administrator@rootContributor

[BUG] DefaultCodegen should generate OneOf<ObjA,ObjB> from composed-oneof, but got Oneof<ObjA>

Created by: zigen

Description

DefaultCodegen cannot generate composed oneof type properly. this generates the type which includes only first type of Schema.oneOf.

openapi-generator version

4.0.0-SNAPSHOT

OpenAPI declaration file content or url

3_0/composed-oneof.yaml

Command line used for generation

./mvnw test

Steps to reproduce

DefaultCodegenTest.java:252 the value of type is oneOf<ObjA>

Related issues/PRs

https://github.com/OpenAPITools/openapi-generator/issues/1745

Suggest a fix
Assignee
Assign to
Time tracking