Origin: https://stackoverflow.com/q/50163882/131929 Is it correct that the generator produces a dedicated field for the discriminator? ```java @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "errorType", visible = true) @JsonSubTypes({ @JsonSubTypes.Type(value = SpecificError.class, name = "SpecificError"), }) public class GeneralError { @JsonProperty("errorType") private String errorType = null; ... ``` `errorType` is the declared discriminator. When Jackson serializes a `SpecificError` object it includes `errorType` twice: ```json {"errorType":"SpecificError","message":"message","errorType":null} ```