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

[BUG][JAVA][Spring] When specifying a responseWrapper, jdk8 is false and doesn't import Optional in Controller

Created by: LionH

in this code line, the jdk8 parameter is set to false when a responseWrapper is specified and even with the option useOptional=true, the APIController doesn't take in account the option flag. I suggest to use the useOptional option also in the apiController or not to set to false the jdk8 in case we use a responseWrapper.

My actual configuration:

configOptions = [
        delegatePattern : "true",
        dateLibrary : "java8",
        interfaceOnly : "false",
        java8: "true",
        performBeanValidation : "true",
        responseWrapper: "CompletableFuture",
        serializationLibrary : "jackson",
        swaggerDocketConfig : "true",
        useOptional : "true"
    ]
Assignee
Assign to
Time tracking