A custom decoder for backwards-compatibility.
A custom decoder for backwards-compatibility.
The old format in dynamo did not include the type under the data
union field. E.g.
Old format:
{
data: {
items: []
]
}
New format:
{
data: {
profile: {
items: []
}
}
}
This decoder supports either format.
For backwards-compatibility, encode enums as e.g.
For backwards-compatibility, encode enums as e.g. 'Profile'. Fezziwig encodes using the same formatting as the original thrift definition.