We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given: Encoded custom tag with value like: {"type": str, "value": str}.
cbor decode method returns Tag object with proper tag and value == {} (empty map).
if value is something like ["some", "str"], tag.value is correct. not for mapping
so on custom tag value decode, list and string are decoded properly, map is not.
checked payload with cbor playground, to check encoded properly.
looks like cbor-x issue
The text was updated successfully, but these errors were encountered:
issue is not correct:
reason was I used
function decode(data) { return new Decoder().decode(data); }
and in this case default options for decoding are not applied. https://github.com/kriszyp/cbor-x/blob/master/decode.js#L39
assume to add
else {options = defaultOptions}
to make defeault options applied on new Decoder()
new Decoder()
Sorry, something went wrong.
The exported decode function has different defaults than creating a Decoder instance and using its decode method.
decode
Decoder
No branches or pull requests
Given: Encoded custom tag with value like: {"type": str, "value": str}.
cbor decode method returns Tag object with proper tag and value == {} (empty map).
if value is something like ["some", "str"], tag.value is correct. not for mapping
so on custom tag value decode, list and string are decoded properly, map is not.
checked payload with cbor playground, to check encoded properly.
looks like cbor-x issue
The text was updated successfully, but these errors were encountered: