forked from loafle/openapi-generator-original
Fix duplicated mappedModels (#7924)
* fix duplicated mapped models * replace discriminatorExplicitMappingVerbose with legacyDiscriminatorBehavior in comments * use mappingName for comparison * improve template * fix tests * update comments * update ts samples
This commit is contained in:
@@ -17,8 +17,8 @@ import javax.validation.constraints.*;
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
})
|
||||
|
||||
public class Animal {
|
||||
|
||||
Reference in New Issue
Block a user