Using version 6.0.0
The generated models contain the following annotation:
@JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization )
This is problematic in my case, were a single type has multiple values:
@JsonSubTypes({
@JsonSubTypes.Type(value = AssignedEntitiesTile.class, name = "APPLICATION"),
@JsonSubTypes.Type(value = FilterableEntityTile.class, name = "APPLICATIONS"),
@JsonSubTypes.Type(value = Tile.class, name = "APPLICATIONS_MOST_ACTIVE"),
@JsonSubTypes.Type(value = AssignedEntitiesTile.class, name = "APPLICATION_METHOD")
...
})
When ignoring this field, the first value is used during serialization, so even when manually setting the type to 'APPLICATION_METHOD' serialization fills in 'APPLICATION'.
This is a regression from 5.1.0 which I used previously.
Using version 6.0.0
The generated models contain the following annotation:
@JsonIgnoreProperties( value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization allowSetters = true // allows the type to be set during deserialization )This is problematic in my case, were a single type has multiple values:
When ignoring this field, the first value is used during serialization, so even when manually setting the type to 'APPLICATION_METHOD' serialization fills in 'APPLICATION'.
This is a regression from 5.1.0 which I used previously.