jakartaee / jsonb-api

Jakarta JSON Binding
https://eclipse-ee4j.github.io/jsonb-api/
Other
79 stars 39 forks source link

JsonbProperty and JsonbNillable together not functioning #336

Open bcoveny opened 1 year ago

bcoveny commented 1 year ago

If @JsonbPreoprty(nillable) is deprecated, what is the proper usage to use both @JsonbProperty and @JsonbNillable? I have tried several different combination with none of them working. We have an instance where overriding the field value and applying nillable are both wanted. It works with using @JsonbProperty(value,nillable), however, the project then produces a ton of deprecated warnings.

Also, I have had a StackOverflow post with more information . https://stackoverflow.com/questions/74575063/java-jsonb-jsonbnillable-not-functioning-as-expected

Any assistance is welcomed.

Thanks