Tatu Saloranta
Tatu Saloranta
Are you aware of existence of `@JsonSetter` functionality for null-handling (via annotations and/or per-type "config overrides")? They are briefly explained wrt Jackson 2.9 features: https://cowtowncoder.medium.com/jackson-2-9-features-b2a19029e9ff specifically, for `String`s, you could:...
Ahhhh. My mistake; this feature only works for deserialization, not serialization. One request: could you change the title to mention "serialization" (not "deserialization") -- easier to avoid mistakes like mine.
Np at all, thanks!
@dinomite it's bit of a tricky case: it might make sense on either side, depending. But at this point request itself was for Kotlin handling which is why I moved...
I would recommend caution wrt adding such logic in `AnnotationIntrospector` as it would sort of have to undo/redo quite a bit of logic to recreate inheritance hierarchy (or other processing...
I think that it should be possible to make Kotlin-specific `AnnotationIntrospector` "find" required-ness for properties of data classes.
Do you know if this is a new addition to particular version of protobuf specification?
Ok thank you for checking this out. I was just trying to figure this out since I did not remember seeing this keyword before myself. It seems like a useful...
It'd be good to maybe file issue separately, link to/from this PR. There's one small problem with custom deserializer, not sure if it matters.
Ok. Thank you for verifying. I think this could be related to one oddity wrt Avro handling of `null`s: unless null value is part of union, it "does not exist":...