-
Notifications
You must be signed in to change notification settings - Fork 98
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
MIME Types for DID Documents and Representations #255
Comments
The first, third, and fourth look fine to me. However, the second is a problem: at this moment The ideal would be
I do not understand this remark. The fact that |
Per #241, which will likely be merged soon, MIME types will be defined by compliant repesentations. My DID Resolution PR #247 referenced those new sections when talking about I agree with @iherman that the topic of MIME types has been discussed in the past, we even had a call with the JSON-LD WG to discuss different options. In any case, we have to be compliant with IANA rules about how suffixes work.
This is definitely wrong ( |
@iherman That's why I'm proposing |
@jricher - that's reversed. It's |
As @dmitrizagidulin and @peacekeeper already remarked |
@dmitrizagidulin @iherman Thanks, I'll change the text of the issue to reflect that. |
RFC6838 defines how structured suffixes should be used. application/json+did and variants are not valid options. The specific section regarding structured suffixes is here: https://tools.ietf.org/html/rfc6838#section-4.2.8 More elaboration here: https://tools.ietf.org/html/rfc6839 AFAIK, the current options are:
There is already a section in the spec that establishes MIME Types: https://w3c.github.io/did-core/#iana-considerations That was merged two months ago: @jricher, this seems to be a duplicate of an issue that has been resolved. Can we close this issue? |
What mime types should we use for DID documents? This is especially important in the light of #253 that allows for
content-type
andaccept
negotiation and signaling.Note: this has been updated to reflect comments below
I propose that we create a core DID document mime type and tag the representation onto it, like:
application/json+did
application/jsonld+did
application/cbor+did
application/pdf+did
Pro: this would allow us to define things like fragment behavior based on
application/did
.Con: native parsers would have to be told that
application/json+did
is actuallyapplication/json
.Some examples have the relationship inverted as:
application/did+json
application/did+json+ld
Pro: this lets parsers handle things more easily, potentially.
Con: we have to re-define DID document behavior across lots of different representations.
The text was updated successfully, but these errors were encountered: