Skip to content

Commit

Permalink
Standardize resolution for "empty". (#77)
Browse files Browse the repository at this point in the history
* Standardize resolution to use `{}` for empty.

* Update resolve.json

* Make didDocument have null values
  • Loading branch information
andresuribe87 authored Jan 9, 2024
1 parent 93b45d3 commit 6b3ef98
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions web5-test-vectors/did_jwk/resolve.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
},
"didDocumentMetadata": {}
},
"errors": false
"errors": true
}
]
}
}
21 changes: 15 additions & 6 deletions web5-test-vectors/did_web/resolve.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@
}
},
"output": {
"didResolutionMetadata": {},
"didDocument": {
"id": "did:web:example.com"
}
},
"didDocumentMetadata": {},
"didResolutionMetadata": {}
}
},
{
Expand All @@ -29,10 +30,11 @@
}
},
"output": {
"didResolutionMetadata": {},
"didDocument": {
"id": "did:web:w3c-ccg.github.io:user:alice"
}
},
"didDocumentMetadata": {},
"didResolutionMetadata": {}
}
},
{
Expand All @@ -46,10 +48,11 @@
}
},
"output": {
"didResolutionMetadata": {},
"didDocument": {
"id": "did:web:example.com%3A3000:user:alice"
}
},
"didDocumentMetadata": {},
"didResolutionMetadata": {}
}
},
{
Expand All @@ -58,6 +61,8 @@
"didUri": "did:dht:gb46emk73wkenrut43ii67a3o5qctojcaucebth7r83pst6yeh8o"
},
"output": {
"didDocument": null,
"didDocumentMetadata": {},
"didResolutionMetadata": {
"error": "methodNotSupported"
}
Expand All @@ -70,6 +75,8 @@
"didUri": "did:web:doesnotexist.com"
},
"output": {
"didDocument": null,
"didDocumentMetadata": {},
"didResolutionMetadata": {
"error": "notFound"
}
Expand All @@ -82,6 +89,8 @@
"didUri": "did:web:invalidcharø.com"
},
"output": {
"didDocument": null,
"didDocumentMetadata": {},
"didResolutionMetadata": {
"error": "invalidDid"
}
Expand Down

0 comments on commit 6b3ef98

Please sign in to comment.