Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [Java][jersey2] null type is not supported in oneOf/anyOf #6257

Closed
6 tasks
wing328 opened this issue May 11, 2020 · 1 comment · Fixed by #6269
Closed
6 tasks

[BUG] [Java][jersey2] null type is not supported in oneOf/anyOf #6257

wing328 opened this issue May 11, 2020 · 1 comment · Fixed by #6269

Comments

@wing328
Copy link
Member

wing328 commented May 11, 2020

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description

Details of the issue: #6237 (comment)

openapi-generator version

Last master

OpenAPI declaration file content or url

https://github.com/CiscoM31/intersight-openapi/blob/master/intersight-openapi-v3.yaml

Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix
@briceburg
Copy link

@wing328 I am getting the following error in plugin 4.3.1, need to revert to 4.3.0 to fix.

.../generated/openapi-client/src/main/java/org/openapitools/client/model/OperationResult.java:29: error: cannot find symbol
import org.openapitools.client.model.oas_any_type_not_mapped;
                                    ^
  symbol:   class oas_any_type_not_mapped
  location: package org.openapitools.client.model

Config:

openApiGenerate {
    generatorName = "java" // https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/java.md
    inputSpec = "$projectDir/openapi.json"
    configOptions = [
            "dateLibrary": "java8",
            "library": "native",
            "java8": "true",
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants