Encoding without undoing transformation
Ok last thing, I promise!
I have a transforming schema
Decoding
Encoding
but how would I Encode
and decode
Will I have to define a new schema that is identical to
I have a transforming schema
Decoding
Foo --> FooWithBar works great!Encoding
FooWithBar ---> Foo same deal! amazing!but how would I Encode
FooWithBar --> JsonFriendlyFooWithBar?and decode
JsonFriendlyFooWithBar ---> FooWithBar?Will I have to define a new schema that is identical to
FooWithBar just not based on transformations? My use case is quite complicated, with multiple layers of transformations like these, so that would SUCK. Is there a cleaner way?