-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
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
Validation always fails for CBOR with non-standard simple values #90
Comments
hey @Anrock, thanks for highlighting this. Indeed, this is due to error in the |
@anweiss not sure if it's fixed with ciborium. I just compiled 8d398da and tried to validate same cbor against cddl spec and got
Seems like it's the same thing with ciborium too - it intentionally produces an error on any custom simple value it doesn't know about |
hey @Anrock, can you provide the CDDL you are using that is causing this error? |
@anweiss I don't think it's the CDDL itself but a cbor binary. Minimal repro should be just a |
@anweiss okay, I got minimal repro. cddl: cbor: I don't think I can attach a binary file in github, but you can easily create it via Then running
|
Thanks @Anrock for reporting this. Putting this in the backlog until enarx/ciborium#60 is looked at. |
Seems like cddl is unable to validate any CBOR binary that uses non-standard simple values, instead producing
As far as I understand this is due to serde_cbor intentionally producing parser error when it encounters any simple value it doesn't understand.
Is there any workaround for that or the fix would be to replace serde_cbor with other library?
The text was updated successfully, but these errors were encountered: