-
Notifications
You must be signed in to change notification settings - Fork 39
"bad @context cardinality" test #96
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
Comments
I believe that
-- should be --
|
That example should include a second context that defines the terms used in the VC (such as |
@dlongley how can an implementation reasonably deduce the correct context in this scenario? |
Real world implementations will do more than just check the data model (they will verify proofs, etc.). They may, for example, either use JSON-LD to detect that that certain terms are undefined or have an API that allows callers to specify known/expected contexts and types. So, such an implementation would not be guessing, but would rather be relying on JSON-LD processing or parameters that are explicitly passed via the API. As for checking against the data model only, we could probably make this test more lenient. I think as long as the first context is appropriate, the test could pass. I think a long term goal of the test suite is to cover both data model tests and, optionally, more -- but this will be up to the CCG to take on. This could result in making this test more lenient in the "data model section" of the test suite but adding more restrictive tests in an optional section elsewhere. |
@dlongley can you please clarify on this:
Do you mean the test should just ensure that when a. the order of ? |
For a VerifiableCredential:
|
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
I think this can be closed? |
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 #96
Could you please explain the meaning of
@context
bad cardinality check frombasic
group? I just cannot understand what's wrong with this definition of VC (from example-1-bad-cardinality.jsonld):The text was updated successfully, but these errors were encountered: