Skip to content

Allow single context, type #106

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 3 commits into from
Mar 31, 2021
Merged

Conversation

clehner
Copy link
Member

@clehner clehner commented Aug 19, 2020

The context cardinality test specifies 'one or more URIs' but rejects the case of one URI. Change it to allow the one-URI case - the base context alone.

The negative test (zero contexts) could also be removed, since that will be caught by subsequent testing for the base context, but I left it in for the sake of a minimal diff.

Edit: added the analogous change for the type property, which is also specified as "one or more" but was rejecting the single-type case.

Fixes #96, #97

The context cardinality test specifies 'one or more URIs' but rejects
the case of one URI. Change it to allow the one-URI case.

Fixes w3c#96
@clehner clehner changed the title Allow single context Allow single context, type Aug 20, 2020
clehner added a commit to spruceid/ssi that referenced this pull request Aug 27, 2020
@msporny msporny merged commit c36ed13 into w3c:gh-pages Mar 31, 2021
@clehner clehner deleted the one-or-more-context branch March 31, 2021 14:42
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.

"bad @context cardinality" test
2 participants