Adding a property based on another property while decoding, without removing the original propert...
What's the best way to add a property based on another property while decoding? To keep the original and transformed property.
e.g language codes. the API returns ISO-639-1 codes, while we need ISO-639-1 AND ISO-639-3.
what I need out of it is:
The conversion logic is already a
e.g language codes. the API returns ISO-639-1 codes, while we need ISO-639-1 AND ISO-639-3.
what I need out of it is:
The conversion logic is already a
Schema.transform that I can use, I also know that using propertySignatures I can turn code into codeA3 using fromKey however this removes the original property code.