From 6bb1ebce17af19aae2af25a62cd3139cc93f7048 Mon Sep 17 00:00:00 2001 From: Daniel Valero Date: Fri, 27 Feb 2026 17:21:18 +0100 Subject: [PATCH 1/5] Update vocabulary.yml add DID resolution error conditions to vocabulary #922 --- vocab/vocabulary.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/vocab/vocabulary.yml b/vocab/vocabulary.yml index 131101d2..3834f9c3 100644 --- a/vocab/vocabulary.yml +++ b/vocab/vocabulary.yml @@ -198,4 +198,45 @@ datatype: defined_by: https://www.w3.org/TR/cid-1.0/#multibase context: https://w3id.org/security/multikey/v1 +individual: + - id: INVALID_DID + label: Invalid DID + comment: The DID supplied to the DID resolution function does not conform to valid syntax. + defined_by: https://w3c.github.io/did-resolution/#errors + context: vocab + + - id: NOT_FOUND + label: Not Found + comment: The DID resolver was unable to find the DID document associated with the DID. + defined_by: https://w3c.github.io/did-resolution/#errors + context: vocab + + - id: REPRESENTATION_NOT_SUPPORTED + label: Representation Not Supported + comment: The requested representation is not supported by the DID resolver. + defined_by: https://w3c.github.io/did-resolution/#errors + context: vocab + + - id: METHOD_NOT_SUPPORTED + label: Method Not Supported + comment: The DID resolver does not support the DID method of the specified DID. + defined_by: https://w3c.github.io/did-resolution/#errors + context: vocab + + - id: INTERNAL_ERROR + label: Internal Error + comment: The DID resolver encountered an internal error. + defined_by: https://w3c.github.io/did-resolution/#errors + context: vocab + - id: INVALID_DID_DOCUMENT + label: Invalid DID Document + comment: The DID document was found but it is not a valid DID document. + defined_by: https://w3c.github.io/did-resolution/#errors + context: vocab + + - id: DEACTIVATED + label: Deactivated + comment: The DID has been deactivated and the DID document is no longer available. + defined_by: https://w3c.github.io/did-resolution/#errors + context: vocab From 94ad6716a872666b1618d1fa1f70640c4643761e Mon Sep 17 00:00:00 2001 From: Daniel Valero Date: Fri, 27 Feb 2026 18:06:23 +0100 Subject: [PATCH 2/5] Apply suggestions from code review Co-authored-by: Ivan Herman --- vocab/vocabulary.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/vocab/vocabulary.yml b/vocab/vocabulary.yml index 3834f9c3..3d88ab75 100644 --- a/vocab/vocabulary.yml +++ b/vocab/vocabulary.yml @@ -202,41 +202,48 @@ individual: - id: INVALID_DID label: Invalid DID comment: The DID supplied to the DID resolution function does not conform to valid syntax. - defined_by: https://w3c.github.io/did-resolution/#errors + defined_by: https://www.w3.org/TR/did-resolution/#INVALID_DID + type: ResolutionError context: vocab - id: NOT_FOUND label: Not Found comment: The DID resolver was unable to find the DID document associated with the DID. - defined_by: https://w3c.github.io/did-resolution/#errors + defined_by: https://www.w3.org/TR/did-resolution/#NOT_FOUND + type: ResolutionError context: vocab - id: REPRESENTATION_NOT_SUPPORTED label: Representation Not Supported comment: The requested representation is not supported by the DID resolver. - defined_by: https://w3c.github.io/did-resolution/#errors + defined_by: https://www.w3.org/TR/did-resolution/#REPRESENTATION_NOT_SUPPORTED + type: ResolutionError context: vocab - id: METHOD_NOT_SUPPORTED label: Method Not Supported comment: The DID resolver does not support the DID method of the specified DID. - defined_by: https://w3c.github.io/did-resolution/#errors + defined_by: https://www.w3.org/TR/did-resolution/#METHOD_NOT_SUPPORTED + type: ResolutionError context: vocab - id: INTERNAL_ERROR label: Internal Error comment: The DID resolver encountered an internal error. - defined_by: https://w3c.github.io/did-resolution/#errors + defined_by: https://www.w3.org/TR/did-resolution/#INTERNAL_ERROR + type: ResolutionError context: vocab - id: INVALID_DID_DOCUMENT label: Invalid DID Document comment: The DID document was found but it is not a valid DID document. - defined_by: https://w3c.github.io/did-resolution/#errors + defined_by: https://www.w3.org/TR/did-resolution/#INVALID_DID_DOCUMENT + type: ResolutionError context: vocab - id: DEACTIVATED label: Deactivated comment: The DID has been deactivated and the DID document is no longer available. - defined_by: https://w3c.github.io/did-resolution/#errors + defined_by: https://wwww.w3.org/TR/did-resolution/#DEACTIVATED + type: ResolutionError context: vocab From a8e466b14ffc9e43d379fdabc6c22c876930b264 Mon Sep 17 00:00:00 2001 From: Daniel Valero Date: Fri, 27 Feb 2026 18:17:39 +0100 Subject: [PATCH 3/5] Update vocabulary.yml --- vocab/vocabulary.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vocab/vocabulary.yml b/vocab/vocabulary.yml index 3d88ab75..3486dee9 100644 --- a/vocab/vocabulary.yml +++ b/vocab/vocabulary.yml @@ -62,7 +62,11 @@ class: defined_by: https://www.w3.org/TR/cid-1.0/#jsonwebkey context: https://w3id.org/security/jwk/v1 - + - id: ResolutionError + label: DID Resolution error + defined_by: https://www.w3.org/TR/did-resolution/#errors + context: none + property: - id: sec:controller label: Controller @@ -244,6 +248,6 @@ individual: - id: DEACTIVATED label: Deactivated comment: The DID has been deactivated and the DID document is no longer available. - defined_by: https://wwww.w3.org/TR/did-resolution/#DEACTIVATED + defined_by: https://www.w3.org/TR/did-resolution/#DEACTIVATED type: ResolutionError context: vocab From 7b7540c1321966c220df9b9ba55839d0ff4315ac Mon Sep 17 00:00:00 2001 From: Daniel Valero Date: Mon, 2 Mar 2026 09:51:02 +0100 Subject: [PATCH 4/5] Update vocabulary.yml --- vocab/vocabulary.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vocab/vocabulary.yml b/vocab/vocabulary.yml index 3486dee9..fd2ce4b8 100644 --- a/vocab/vocabulary.yml +++ b/vocab/vocabulary.yml @@ -251,3 +251,17 @@ individual: defined_by: https://www.w3.org/TR/did-resolution/#DEACTIVATED type: ResolutionError context: vocab + + - id: INVALID_DID_URL + label: Invalid DID URL + comment: The DID URL supplied to the DID resolution function does not conform to valid syntax. + defined_by: https://www.w3.org/TR/did-resolution/#INVALID_DID_URL + type: ResolutionError + context: vocab + + - id: INVALID_OPTIONS + label: Invalid Options + comment: The options supplied to the DID resolution function are invalid. + defined_by: https://www.w3.org/TR/did-resolution/#INVALID_OPTIONS + type: ResolutionError + context: vocab From 22e21005ceb10f59e7d0e5879f96112e5001f538 Mon Sep 17 00:00:00 2001 From: Daniel Valero Date: Mon, 23 Mar 2026 10:22:10 +0100 Subject: [PATCH 5/5] Remove trailing slashes and an extra 'h' in authentication link --- vocab/vocabulary.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/vocab/vocabulary.yml b/vocab/vocabulary.yml index fd2ce4b8..03e11fb2 100644 --- a/vocab/vocabulary.yml +++ b/vocab/vocabulary.yml @@ -64,7 +64,7 @@ class: - id: ResolutionError label: DID Resolution error - defined_by: https://www.w3.org/TR/did-resolution/#errors + defined_by: https://www.w3.org/TR/did-resolution#errors context: none property: @@ -99,7 +99,7 @@ property: label: Authentication method range: sec:VerificationMethod type: sec:VerificationRelationship - defined_by: [hhttps://www.w3.org/TR/cid-1.0/#authentication] + defined_by: [https://www.w3.org/TR/cid-1.0/#authentication] see_also: - label: DID 1.1 specification url: https://www.w3.org/TR/did-1.1/#core-properties @@ -206,62 +206,62 @@ individual: - id: INVALID_DID label: Invalid DID comment: The DID supplied to the DID resolution function does not conform to valid syntax. - defined_by: https://www.w3.org/TR/did-resolution/#INVALID_DID + defined_by: https://www.w3.org/TR/did-resolution#INVALID_DID type: ResolutionError context: vocab - id: NOT_FOUND label: Not Found comment: The DID resolver was unable to find the DID document associated with the DID. - defined_by: https://www.w3.org/TR/did-resolution/#NOT_FOUND + defined_by: https://www.w3.org/TR/did-resolution#NOT_FOUND type: ResolutionError context: vocab - id: REPRESENTATION_NOT_SUPPORTED label: Representation Not Supported comment: The requested representation is not supported by the DID resolver. - defined_by: https://www.w3.org/TR/did-resolution/#REPRESENTATION_NOT_SUPPORTED + defined_by: https://www.w3.org/TR/did-resolution#REPRESENTATION_NOT_SUPPORTED type: ResolutionError context: vocab - id: METHOD_NOT_SUPPORTED label: Method Not Supported comment: The DID resolver does not support the DID method of the specified DID. - defined_by: https://www.w3.org/TR/did-resolution/#METHOD_NOT_SUPPORTED + defined_by: https://www.w3.org/TR/did-resolution#METHOD_NOT_SUPPORTED type: ResolutionError context: vocab - id: INTERNAL_ERROR label: Internal Error comment: The DID resolver encountered an internal error. - defined_by: https://www.w3.org/TR/did-resolution/#INTERNAL_ERROR + defined_by: https://www.w3.org/TR/did-resolution#INTERNAL_ERROR type: ResolutionError context: vocab - id: INVALID_DID_DOCUMENT label: Invalid DID Document comment: The DID document was found but it is not a valid DID document. - defined_by: https://www.w3.org/TR/did-resolution/#INVALID_DID_DOCUMENT + defined_by: https://www.w3.org/TR/did-resolution#INVALID_DID_DOCUMENT type: ResolutionError context: vocab - id: DEACTIVATED label: Deactivated comment: The DID has been deactivated and the DID document is no longer available. - defined_by: https://www.w3.org/TR/did-resolution/#DEACTIVATED + defined_by: https://www.w3.org/TR/did-resolution#DEACTIVATED type: ResolutionError context: vocab - id: INVALID_DID_URL label: Invalid DID URL comment: The DID URL supplied to the DID resolution function does not conform to valid syntax. - defined_by: https://www.w3.org/TR/did-resolution/#INVALID_DID_URL + defined_by: https://www.w3.org/TR/did-resolution#INVALID_DID_URL type: ResolutionError context: vocab - id: INVALID_OPTIONS label: Invalid Options comment: The options supplied to the DID resolution function are invalid. - defined_by: https://www.w3.org/TR/did-resolution/#INVALID_OPTIONS + defined_by: https://www.w3.org/TR/did-resolution#INVALID_OPTIONS type: ResolutionError context: vocab