Skip to content

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

Description

@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"
    ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions