Re: [media-types] Proposed media type registration for YAML

Ben Harris <bjh21@cam.ac.uk> Wed, 15 July 2015 18:02 UTC

Return-Path: <bjh21@cam.ac.uk>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2ABB61ACDDB for <media-types@ietfa.amsl.com>; Wed, 15 Jul 2015 11:02:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.4
X-Spam-Level:
X-Spam-Status: No, score=0.4 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, J_CHICKENPOX_34=0.6, MIME_8BIT_HEADER=0.3] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dn8tszdIvtSM for <media-types@ietfa.amsl.com>; Wed, 15 Jul 2015 11:02:36 -0700 (PDT)
Received: from pechora1.lax.icann.org (pechora1.icann.org [IPv6:2620:0:2d0:201::1:71]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A4C7E1ACD6A for <media-types@ietf.org>; Wed, 15 Jul 2015 11:02:35 -0700 (PDT)
Received: from ppsw-50.csi.cam.ac.uk (ppsw-50.csi.cam.ac.uk [131.111.8.150]) by pechora1.lax.icann.org (8.13.8/8.13.8) with ESMTP id t6FI2Erk012437 for <media-types@iana.org>; Wed, 15 Jul 2015 18:02:35 GMT
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from puff.ds.cam.ac.uk ([131.111.8.65]:56192) by ppsw-50.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.138]:25) with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) id 1ZFQfk-0003RF-rR (Exim 4.82_3-c0e5623) (return-path <bjh21@cam.ac.uk>); Wed, 15 Jul 2015 18:40:44 +0100
Received: from bjh21 (helo=localhost) by puff.ds.cam.ac.uk with local-esmtp (Exim 4.82) (envelope-from <bjh21@cam.ac.uk>) id 1ZFQfk-0004CD-Fo; Wed, 15 Jul 2015 18:40:44 +0100
Date: Wed, 15 Jul 2015 18:40:44 +0100
From: Ben Harris <bjh21@cam.ac.uk>
To: "Martin J. Dürst" <duerst@it.aoyama.ac.jp>
In-Reply-To: <55A4977A.2080508@it.aoyama.ac.jp>
Message-ID: <alpine.DEB.2.10.1507151728470.9824@puff.ds.cam.ac.uk>
References: <alpine.DEB.2.10.1507071519140.29345@puff.ds.cam.ac.uk> <55A4977A.2080508@it.aoyama.ac.jp>
User-Agent: Alpine 2.10 (DEB 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1870872840-1040522449-1436979055=:9824"
Content-ID: <alpine.DEB.2.10.1507151751090.9824@puff.ds.cam.ac.uk>
Sender: "B.J. Harris" <bjh21@cam.ac.uk>
X-Greylist: Delayed for 00:21:29 by milter-greylist-4.0 (pechora1.lax.icann.org [192.0.33.71]); Wed, 15 Jul 2015 18:02:35 +0000 (UTC)
Archived-At: <http://mailarchive.ietf.org/arch/msg/media-types/DfudLTEIbO8SWSBkEFV-luvzPdE>
Cc: media-types@iana.org
Subject: Re: [media-types] Proposed media type registration for YAML
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "IANA mailing list for reviewing Media Type \(MIME Type, Content Type\) registration requests." <media-types.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/media-types>, <mailto:media-types-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/media-types/>
List-Post: <mailto:media-types@ietf.org>
List-Help: <mailto:media-types-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/media-types>, <mailto:media-types-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Jul 2015 18:02:38 -0000

On Tue, 14 Jul 2015, Martin J. Dürst wrote:

> On 2015/07/07 23:33, Ben Harris wrote:
>> Below is a media type registration I'm proposing to submit for YAML.  I
>> have one specific question for the list:
>> 
>> * Is it appropriate to use a "text/*" type for something that might be
>> encoded in UTF-16 or UTF-32?  I'm confident that YAML in UTF-8 fits the
>> line-break requirements of RFC 2046, but I'm not sure whether that
>> permits UTF-16 or UTF-32.
>
> The answer is "it depends". For more details, see e.g.
> http://tools.ietf.org/html/rfc7303#section-9.2 (or rather actually 
> http://tools.ietf.org/html/rfc7303#section-9.1) or the somewhat older 
> http://tools.ietf.org/html/rfc3023#section-8.2.

I think that's slightly helpful, as is the sentence "See [RFC2046] for 
additional information on the restrictions MIME imposes." from RFC 6838. 
That suggests that, possibly with some extra notes about using only UTF-8 
with MIME, permitting UTF-16 and UTF-32 would be tolerable.

> Because YAML is only rarely used to transmit actual human-readable prose (as 
> opposed to structured data in textual form), a top-level type of 
> application/, with less restrictions, may be much more appropriate.
> That's the conclusion XML came to, after many years and some detours.

The highest-priority design goal for YAML is stated to be "YAML is easily 
readable by humans" (YAML 1.2 section 1.1). So while not designed to 
transmit prose, it is designed to transmit human-readable data.  My 
experience is that even machine-generated YAML is generally more readable 
than XML, JSON, or CSV.

>>     Subtype name:
>> 
>> vnd.yaml
>
> I wonder whether the vnd. prefix here is really appropriate. YAML isn't a 
> company in any way. Ideally, something like YAML should just be text/yaml (or 
> actually application/yaml, see above). The spec at e.g. 
> http://yaml.org/spec/1.2/spec.html definitely looks very detailed and well 
> worked out, although I can't speak for the actual quality.

I would much prefer to be able to use the standards tree rather than the 
vendor tree, but RFC 6838 doesn't make this easy.  In the vendor tree, 
third-party registrations are explicitly permitted and "vendor" is 
described as being "construed very broadly", which I think is enough to 
let me register this type on behalf of the YAML authors.  The standards 
tree, on the other hand, would either require me to write an RFC or 
require the YAML authors to submit the request themselves and to be 
approved as a "standards-related organization" by the IESG.

I'll see if I can find a way to make either of the standards-tree routes 
work.  Is there any guidance (or history) on what the IESG considers to be 
a standards-related organization?

-- 
Ben Harris, University of Cambridge Information Services.