Closed hansl closed 1 year ago
Note that the CDDL validates properly, the CBOR does not.
Creating some tests for the CBOR validation, it seems like maps and arrays don't properly visit the CBOR itself, instead staying at the root of the array/map. I'm still investigating and may come up with a PR to fix, as this is a very important tool for us.
Fixed in #203. Re-open if needed.
The following CDDL:
With the following CBOR (diag notation, hex is
81D87B4100
):Does not validate using this library. The Ruby
cddl
gem validates it correctly. The errors are as follow:Edit: I just tested with the main branch and I get the same result. Edit2: further simplified the CDDL and CBOR.