forked from loafle/openapi-generator-original
[BUG][JAVA][SPRING] Fix serialization when there is a discriminator with mapping (#14733) (fix #14731)
* Fix serialization when there is a discriminator with mapping
* Update samples
* Update samples
* upgrade samples
* Revert "Update samples"
This reverts commit d6affde263.
This commit is contained in:
committed by
GitHub
parent
c5d67ee042
commit
cb20e742ea
@@ -34,7 +34,6 @@ import jakarta.annotation.Generated;
|
||||
@JsonSubTypes.Type(value = DogDto.class, name = "Dog")
|
||||
})
|
||||
|
||||
@JsonTypeName("Animal")
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class AnimalDto {
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@ import jakarta.annotation.Generated;
|
||||
@JsonSubTypes.Type(value = BigCatDto.class, name = "BigCat")
|
||||
})
|
||||
|
||||
@JsonTypeName("Cat")
|
||||
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
public class CatDto extends AnimalDto {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user