Skip to content
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

[Feature]: Support for decoding unassigned simple values #60

Open
1 task done
anweiss opened this issue Oct 26, 2022 · 2 comments · May be fixed by #145
Open
1 task done

[Feature]: Support for decoding unassigned simple values #60

anweiss opened this issue Oct 26, 2022 · 2 comments · May be fixed by #145
Labels
enhancement New feature or request

Comments

@anweiss
Copy link

anweiss commented Oct 26, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Description

When decoding CBOR data that contains unassigned simple values, as in those that aren't of false, true, null or undefined, an error is thrown:

h @ Header::Simple(..) => Err(h.expected("known simple value")),

A minimal repro was posted by @Anrock at anweiss/cddl#90 (comment).

It would be great to be able to capture these values so that CDDL tools can validate these values.

Acceptance Criteria

No response

Suggestions for a technical implementation

No response

@Anrock
Copy link

Anrock commented May 11, 2023

@dpal is there any plans to implement this? anweiss/cddl is almost the only cddl-tool in a good shape and having such breakers in it is a pity

@cabo
Copy link

cabo commented Nov 20, 2024

We'll need this for packed CBOR, so it would be good if someone added the line or two of code this needs.

@beltram beltram linked a pull request Nov 27, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: New
Development

Successfully merging a pull request may close this issue.

3 participants