-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Is there an official mime type for KDL? #159
Comments
There is not. What should it be? I like text/kdl personally but idk what the rules or expectations actually are |
It depends on the usecase for example tl;dr While on disk, That's my understanding of how mimes generally work, I'm not sure of the legal workings to get a mime registered which is required for |
I understand less about the text/application distinction than I thought, I would have to take some more time to find that out. Anyway, from what I gather both |
Info on how to register a new mime-type at I would recommend on going for the vendor tree. Here are the requirements which are lower than something in the main tree (e.g text/kdl) https://datatracker.ietf.org/doc/html/rfc6838#section-3.2,
|
This all sounds like we want more notability/traction in order to do any of this. So I propose we table this until #82 is able to close, at least, and revisit this then? Thoughts on that? |
I think in the meantime we could use |
You should use (There are a great many other restrictions on |
@marrus-sh That hasn’t been true for a long time now — RFC 6657 is well-established. Text formats can either require a charset parameter or forbid it due to encoding being a consideration of the format itself. That includes not just cases where it’s in-band like XML, but also cases where the format itself definitionally adheres to a particular encoding (by which I mean the encoding) like certain “application” formats do. (For HTML the rules are very convoluted for don’t-break-the-web reasons, so it’s definitely still best to set utf-8 explicitly even though it can “land there” for free now, but that’s all pretty far outside of IANA media type stuff a new format would need to worry about.) There’s not a lot of rhyme or reason to how these top-level categories are used in practice, so while text fits the original spirit of what the category was for (a human being can read and write it; it’s not binary), it probably will make very little difference either way — I would just suggest the historical default need not be a factor for brand new media types unless there’s some specific scenario that makes it a “thing”. Open interchange of non-UTF-8 is to 2022 what open interchange of EBCDIC was to 1998. |
Cool, so following 6657 we'd declare that KDL must not be specified with a charset (because it's "determined internally" and always set to utf-8). (But I would indeed wait for #82 as Kat said.)
That has nothing to do the mime type; it's just that, for historical reasons, HTML has to default to the Windows-1252 encoding. |
I have officially submitted |
for the record: We're required to have an actual standard, managed by an Official Standards Org (think an actual official RFC or similar) in order to remove the It might be cool to write an RFC for KDL some day but wow that's a lot of work for very little (current) reward. Maybe when we take over the world. |
Something like
text/kdl
orapplication/kdl
, orapplication/vnd.api+kdl
?The text was updated successfully, but these errors were encountered: