Skip to content

[BUG] [Java] [jaxrs-spec] Deserializing of superclass fails #10488

@madsvonqualen

Description

@madsvonqualen
Description

When the Java class name differs from the OpenApi object name, e.g. when using the modelNameSuffix option, then deserialization of superclasses fails as Jackson has no way of matching the discriminator value to the Java class, due to missing @JsonTypeName annotation.

openapi-generator version

5.2.1

OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix

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