Skip to content

Commit cd40da5

Browse files
clehnermsporny
authored andcommitted
Allow base context alone
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
1 parent 549cc36 commit cd40da5

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/vc-data-model-1.0/10-basic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('Basic Documents', function() {
3333
const doc = await util.generate('example-1.jsonld', generatorOptions);
3434
doc.should.have.property('@context');
3535
doc['@context'].should.be.a('Array');
36-
doc['@context'].should.have.length.greaterThan(1);
36+
doc['@context'].should.have.length.greaterThan(0);
3737
});
3838

3939
it('MUST be one or more URIs (negative)', async function() {

test/vc-data-model-1.0/input/example-1-bad-cardinality.jsonld

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"@context": [
3-
"https://www.w3.org/2018/credentials/v1"
43
],
54
"id": "http://example.edu/credentials/58473",
65
"type": ["VerifiableCredential", "AlumniCredential"],

0 commit comments

Comments
 (0)