Hi,
We solve this by having a parse transformation that adds additional
functions to the module (at compile time). More specifically, we use
this to generate functions that serialize and deserialize json objects
to records, including type verification based on the spec annotations.
Regards
Jonas