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
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