I've added configurable jackson serialization/deserialization support for:
Either<L, R>
Validated<E, A>
Ior<L, R>
I needed to also create a couple of reusable generic machineries to create other product types and union types. Those are being put inside an internal package currently as I don't intend that to be used by users outside of the libraries yet. These includes:
ProductTypeDeserializer<T> and ProductTypeSerializer<T>, and
UnionTypeDeserializer<T> and UnionTypeSerializer<T>
in theory we can now add support for any new sealed data types or any tupled types.
I know this is a rather sizeable PR, happy to split this into smaller chunks if that helps with the review.
in this PR
I've added configurable jackson serialization/deserialization support for:
Either<L, R>
Validated<E, A>
Ior<L, R>
I needed to also create a couple of reusable generic machineries to create other product types and union types. Those are being put inside an
internal
package currently as I don't intend that to be used by users outside of the libraries yet. These includes:ProductTypeDeserializer<T>
andProductTypeSerializer<T>
, andUnionTypeDeserializer<T>
andUnionTypeSerializer<T>
in theory we can now add support for any new sealed data types or any tupled types.
I know this is a rather sizeable PR, happy to split this into smaller chunks if that helps with the review.
fixes #45 fixes #40