Open ogmios-voice opened 5 years ago
That's the way it works: if you have @JsonProperty
in one accessor (say, field), @JsonIgnore
in another (say ,method), usage is considered "split". You will need to either:
@JsonProperty
from field to accessor (recommended) in base class@JsonIgnore
@JsonIgnoreProperties
on sub-class to add ignroal.
Tested against versions
2.9.8
and2.9.9
: the serialization ofBwoProp
returns{"b":2}
while in case ofBwProp
the result is{"b":2,"a":1}
.