Add DelegatingSerializer - #5630
Conversation
|
Did you see I am not sure why EDIT: looks like
but also for 3.1:
to address naming inconsistency. |
|
Looks good, just need to figure out how exactly to untangle naming of "delegating vs converting" (de)serializers. I think plain |
2b551eb to
bd39fee
Compare
|
@mluckam Ok looks good, happy to add! Just one more thing before doing so: unless we've gotten one from your earlier (CLAs are good after submitting one), we'd need CLA. It's from here: https://github.com/FasterXML/jackson/blob/main/contributor-agreement.pdf Thank you again for contributing this. |
|
CLA signed previously as part of #4483 |
Ah. Yes, I see it now, for M. Luckam. Thanks! |
|
Added some more testing coverage; fixed issues with "withXxx()" methods, merged in for 3.1.0! |
Currently there is a DelegatingDeserializer, but no DelegatingSerializer. Was there a reason for not including a DelegatingSerializer? It would be nice to have a DelegatingSerializer for symmetry.
I am currently using the DelegatingDeserializer to add validation to the deserialize process, see example project. Since there is not a DelegatingSerializer, the same strategy cannot be applied to serialization. This is just one use case, but I figure others may also utilize deserialization strategies with the DelegatingDeserializer that could also be applied to serialization if there was a DelegatingSerializer.
Welcome any thoughts regarding the request.