Skip to content

[Bug]: openapi doesnt generate for Java cleanly AnyOf for Stop has a default value #19938

@edwardcapriolo

Description

@edwardcapriolo

Your current environment

OpenJDK 25, target java 17
org.openapitools. openapi-generator-maven-plugin, 7.13.0

🐛 Describe the bug

The Any of for the Stop class has a default value of []

Swagger generates

private Stop stop = []

But in java Objects can not have a default value of []

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions