Closed BrianSipos closed 2 years ago
cbor2diag
is actually a different tool, hosted at https://github.com/cabo/cbor-diag
But, this is still interesting for me as cbor-diag
fails on all those test cases 😓. It seems I missed support for base64 padding in the parser, and don't support whitespace in either string.
I would agree that the whitespace allowed in EDN by G.1 applies to all 3 prefixed byte string variants.
Whoops! Thanks for the link.
Currently the
cbor2diag
tool seems to treat whitespace within hex-encoded bytestrings differently than for base64-encoded bytestrings. An example of bad behavior is below. It seems that the where the space is in the base64 sequence doesn't matter. Any space causes this issue.Section G.1 of RFC 8610 indicates that all whitespace is ingored. Its examples uses hex encoding but my interpretation it it should also apply to base64 encoding.