Skip to content

[BUG][JAVA] Enum DTO is generated empty #17551

@stanislav-georgiev-tt

Description

@stanislav-georgiev-tt
Description

My issue is that the DTO generated out of this schema:

"server__routers__v0___set_session_param__Request__eParam": {
"type": "string",
"enum": [
"workshop",
"apparatus",
"dataset"
],
"title": "eParam"
}

is empty, however having similar schema:

"server__routers__v0___predict_process__eParam": {
"type": "string",
"enum": [
"predictProcess",
"predictFinalProductInKg"
],
"title": "eParam"
}

successfully generates me complete DTO.
I tried to edit the fields of the enum thinking that I might use some keyword but without success.
My specification is v3.1.0

openapi-generator version

7.2.0 maven plugin

OpenAPI declaration file content or url
Generation Details

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions