-
Notifications
You must be signed in to change notification settings - Fork 234
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
How does the universal resolver support application/did+json #150
Comments
@peacekeeper better to just answer on the did core issue: w3c/did-core#417 I think this will help clarify a lot. |
@OR13 I agree this should be discussed either in did-core or did-resolution, since it's about resolvers in general, not about the Universal Resolver specifically. Do you want to close the issue here to avoid duplication? |
Yes I think that makes more sense, I can make the change in DID Resolution and the UR code. |
Also see #150. Signed-off-by: Markus Sabadello <markus@danubetech.com>
Updated the profile URL in 4817115 and w3c-ccg/did-resolution@68ac2a7 |
We reviewed this on the 14 Jul 2021 Universal Resolver Work Item Call. Now seems to be a good time to continue this conversation, since 1. DID Core is nearing completion, 2. A DID test suite exist now, and 3. there is ongoing work on the Universal Resolver to address this topic. |
There is some support now in the Universal Resolver for different representations, but this isn't well-documented yet. We should add some explanation and examples like the following:
Returns the DID document + metadata.
Returns the DID document in JSON.
Returns the DID document in JSON-LD.
Returns the DID document in CBOR. We updated the README with these examples in 7a97410. |
@peacekeeper wondering about the profile.... should it be
https://w3id.org/did-resolution
?Can you provide your thoughts on what happens when I request
application/did+json
?I assume based on your comments on the DID WG call that the universal resolver will throw an error if the did method does not support
application/did+json
but doesapplication/did+ld+json
....I would prefer that
application/did+json
be compatible withapplication/did+ld+json
... so that JSON-LD can be returned when JSON is requested and the DID Method has chosen not to support JSON...Obviously thats for the DID WG to decide.
I would like to know how you plan to handle the following cases:
application/did+json
is requested but did method only supportsapplication/did+ld+json
.application/did+ld+json
is requested but did method only supportsapplication/did+json
.*/*
is requested but did method only supportsapplication/did+ld+json
.*/*
is requested and did method supportsapplication/did+ld+json
andapplication/did+json
.application/did+ld+json, application/did+json
is requested and did method supportsapplication/did+ld+json
.application/did+json, application/did+ld+json
is requested and did method supportsapplication/did+ld+json
.The text was updated successfully, but these errors were encountered: