Skip to content

Add tests for non-string key types #2

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

Merged
merged 1 commit into from
Jul 19, 2025
Merged

Conversation

gordonbrander
Copy link
Owner

https://datatracker-ietf-org.lucaspardue.com/doc/draft-rundgren-cbor-core/ allows for key types besides string.

This adds tests proving that non-string key types are supported.

DAG-CBOR restricts map keys to string type. However, serde_ipld_dagcbor, the crate from which this crate was forked did not restrict key types in practice. We add some tests to prove it.

https://datatracker-ietf-org.lucaspardue.com/doc/draft-rundgren-cbor-core/
allows for key types besides string.

This adds tests proving that non-string key types are supported.

DAG-CBOR restricts map keys to string type. However, serde_ipld_dagcbor,
the crate from which this crate was forked did not restrict key types in
practice. We add some tests to prove it.
@gordonbrander gordonbrander merged commit 10c40e8 into master Jul 19, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant