yaml-spec icon indicating copy to clipboard operation
yaml-spec copied to clipboard

Registered MIME type?

Open hairyhenderson opened this issue 5 years ago • 6 comments

I'm curious if any work has been done to register a MIME type with IANA for YAML: https://www.iana.org/form/media-types

I would suggest (and have been using) application/yaml, but of course that's up for discussion/debate. I've seen quite a few different types in usage, and it would be nice to have an officially-registered one!

hairyhenderson avatar May 16 '20 23:05 hairyhenderson

This needs to happen. Whomever will register this should ponder text/yaml, too, but I believe "application/yaml" is the more commonly used media type.

YAML is too important to leave unregistered. It may not be obvious, but being unregistered with IANA is a barrier to adoption. There is a reason why we don't see browser support for YAML, as we do for JSON. Web tooling that might easily transition between YAML and JSON is hindered by YAML's non-standardness.

@hairyhenderson provided the IANA media type registration link. With today's release of YAML 1.2.2, let's make YAML an official media type.

cjaccino avatar Oct 01 '21 15:10 cjaccino

Registering a MIME type in the standards tree (as opposed to the vendor or personal trees) requires, among other things, that the spec be published as an RFC. This is a much more involved process than simply filling out the registration form. At this time there is no concrete plan to go through that process, but we may do so in the future.

Thom1729 avatar Oct 01 '21 17:10 Thom1729

[...] the spec be published as an RFC

Thanks for that - I wasn't aware of that requirement. For anyone else curious, see RFC 6838 §3.1:

[...] The registration proposal MUST be published as an RFC. [...]

I do hope the YAML Language Development Team considers publishing an RFC at some point, but no pressure. I can imagine it's a considerable undertaking!

hairyhenderson avatar Oct 03 '21 00:10 hairyhenderson

If the work is an obstacle, I'm willing to do some of the heavy lifting. I have not been through the process, but I'm interested in learning how to work with the IETF. If I put a draft together and outlined steps to address whatever other formalities are required, could we consider moving forward from there?

cjaccino avatar Oct 03 '21 00:10 cjaccino

See https://github.com/ietf-wg-httpapi/mediatypes/issues/10

ioggstream avatar Feb 09 '22 15:02 ioggstream