Relative Content

Tag Archive for javakotlinunionthriftauto-generate

Enforce deserialization on Thrift union type objects

I have a thrift file to define data schemas and from the java class is auto generated. I am starting to see some issues with the union type objects in the way they are deserialized so I want to enforce anyone who adds a union type object to also add a deserializer. I am not entirely sure what kind of pattern I am looking for to achieve the solution. Can anyone help me with some pointers to start?