It should be possible to indicate via annotation that the type id writing may be skipped, if the type is the same as indicated by @JsonProperty.defaultImpl.
Note that type id writer may have some limitations regarding when suppression is possible (and/or how); so this annotation is more of a suggestion, and it should not be assumed that type id will absolutely not be written. Rather, it can be seen as an optimization for reducing writing of unnecessary type ids.
(note: related to https://github.com/FasterXML/jackson-databind/issues/644)
It should be possible to indicate via annotation that the type id writing may be skipped, if the type is the same as indicated by
@JsonProperty.defaultImpl
. Note that type id writer may have some limitations regarding when suppression is possible (and/or how); so this annotation is more of a suggestion, and it should not be assumed that type id will absolutely not be written. Rather, it can be seen as an optimization for reducing writing of unnecessary type ids.