From 36e4c825c2d940a519db497dbc5ab0a77d9cd316 Mon Sep 17 00:00:00 2001 From: "Charles E. Lehner" Date: Tue, 14 Sep 2021 10:42:24 -0400 Subject: [PATCH 1/2] Use URI for refreshService id --- test/vc-data-model-1.0/21-refresh.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/vc-data-model-1.0/21-refresh.js b/test/vc-data-model-1.0/21-refresh.js index 57bc618..cd55d52 100644 --- a/test/vc-data-model-1.0/21-refresh.js +++ b/test/vc-data-model-1.0/21-refresh.js @@ -54,9 +54,8 @@ describe('Refresh Service (optional)', function() { } }); - it('value of `id` MUST be a URL identifying a service endpoint', async function() { - // test that the `id`'s value is a valid URL - // (possibly) attempt to dereference the service endpoint to validate it's "locator-ness" (i.e. URL vs. URI) + it('value of `id` MUST be a URI identifying a service endpoint', async function() { + // test that the `id`'s value is a valid URI const doc = await util.generate('example-011.jsonld', generatorOptions); const services = [].concat(doc.refreshService); From e4119825e0f0f2a444f9b91ca51e0ad612f13777 Mon Sep 17 00:00:00 2001 From: "Charles E. Lehner" Date: Thu, 3 Feb 2022 17:25:40 -0500 Subject: [PATCH 2/2] Deprecate URL test --- implementations/generate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/implementations/generate.js b/implementations/generate.js index 7c0501c..76269a0 100644 --- a/implementations/generate.js +++ b/implementations/generate.js @@ -48,6 +48,7 @@ const deprecatedTests = [ 'Basic Documents Presentations MUST include `verifiableCredential` and `proof` (negative - missing `proof`)', 'Zero-Knowledge Proofs (optional) A verifiable presentation... MUST include `verifiableCredential`', 'Zero-Knowledge Proofs (optional) A verifiable presentation... MUST include `verifiableCredential` (negative - missing `verifiableCredential`)', + 'Refresh Service (optional) each object within `refreshService`... value of `id` MUST be a URL identifying a service endpoint', ]; const invalidTests = [