w3c / vc-test-suite

Verifiable Credentials WG Test Suite
https://w3c.github.io/vc-test-suite/
BSD 3-Clause "New" or "Revised" License
69 stars 39 forks source link

Allow single context, type #106

Closed clehner closed 3 years ago

clehner commented 3 years ago

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