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
  • #7256
Closed
Open
Issue created Aug 20, 2020 by Administrator@rootContributor

[BUG] Java oneof Classes are not generated

Created by: neopaf

Description

(Thanks for fantastic tool!)

I expect OneOfGeographicLocationGeographicLocationRef.java be created.

Actual: no such file is generated

openapi-generator version

Tried with

  • 4.3.1
  • openapi-generator-cli-5.0.0-20200813.162255-527.jar
OpenAPI declaration file content or url

Swagger.json.txt

Generation Details
openapi-generator  generate -I Swagger.json.txt -g jaxrs-cxf-client 
Steps to reproduce

Run above command, you'll get src/gen/java/org/openapitools/model/GeographicLocation.java which contains

import org.openapitools.model.OneOfGeographicLocationGeographicLocationRef;

But no such class was generated.

Assignee
Assign to
Time tracking