You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A couple of days ago, I realized that my project using the Swagger Codegen does not work anymore when using the current release version of Swagger Codegen. The problem is that, for a oneOf discriminator mapping, the corresponding Type-Info-Annotation is now missing in the POJO model classes:
After investigating the issue further, I realized that the changes for PR #620 introduced a change which breaks that part of the code generation. Thus, I am able to provide a PR to fix that problem shortly.
The text was updated successfully, but these errors were encountered:
trohrberg
pushed a commit
to trohrberg/swagger-codegen-generators
that referenced
this issue
Apr 20, 2020
…tly.
With the changes of PR swagger-api#620, the generation of the Type-Info-Annotation for the POJO model classes is broken in case there is a oneOf discriminator mapping in the OpenAPI model. This commit re-introduces the correct generation for those annotation.
(cherry picked from commit 3149424c1ea1fbe7447266aeb9b91a1306380900)
A couple of days ago, I realized that my project using the Swagger Codegen does not work anymore when using the current release version of Swagger Codegen. The problem is that, for a oneOf discriminator mapping, the corresponding Type-Info-Annotation is now missing in the POJO model classes:
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "typ", visible = true )
@JsonSubTypes({
}}
After investigating the issue further, I realized that the changes for PR #620 introduced a change which breaks that part of the code generation. Thus, I am able to provide a PR to fix that problem shortly.
The text was updated successfully, but these errors were encountered: