You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The spec defines the encoding profiles, e.g. prohibit binary (we don't need it, binary support is our main motivation to consider moving to MessagePack), or restrict key types to strings (this is actually something we need).
Any view on how it could be added?
The text was updated successfully, but these errors were encountered:
There are two options here: either add config to type class, like Aeson does, or add it to decode function.
Given that type classes are unlikely to re-define basic objects and map encodings, the latter is probably better - we could add a version of decoding function that accepts options.
Since decode always goes through the data type (unlike aeson, which can do direct decoding from byte arrays without going through the object model), maybe we can have a profile validation operating on the object model?
The spec defines the encoding profiles, e.g. prohibit binary (we don't need it, binary support is our main motivation to consider moving to MessagePack), or restrict key types to strings (this is actually something we need).
Any view on how it could be added?
The text was updated successfully, but these errors were encountered: