[media-types] Thoughts on suffixes, single and multiple

Darrel Miller <darrel@tavis.ca> Wed, 17 April 2024 03:02 UTC

Return-Path: <darrel@tavis.ca>
X-Original-To: media-types@ietfa.amsl.com
Delivered-To: media-types@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 206BBC14F616 for <media-types@ietfa.amsl.com>; Tue, 16 Apr 2024 20:02:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=tavisdev.onmicrosoft.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9cNY6kdkyftq for <media-types@ietfa.amsl.com>; Tue, 16 Apr 2024 20:02:44 -0700 (PDT)
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2115.outbound.protection.outlook.com [40.107.223.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 345B3C14F60B for <media-types@ietf.org>; Tue, 16 Apr 2024 20:02:44 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G4HnA1KphTUz2cd9S9fXSUgNOVg7dhyc04uLUTAZktYUugssbuaxYQEU55dUI8CbAAcc5YA7n2064QBZ0qGBTWiXHe9D/DvWLctmyRc9RJinb+faXtyjg7vaqxOMM0+TfLsEenPeZ7lwt5ad29IYVZZGBXKbik8yT36g7wq54HL2Mm8H9kB8jxno5vy3HN93j+r5jG0nKIwER3u44r9NxHCsyboY7kzbZIKg3bQTWcE1gFWn5Cw8tti1egui5dPgX+nFkQz78WvIPoN+Jt1BXE4Np3SNx/jZoKdzxRTtWvyXfHVqml7C7OdfsZlJco8usXwkGq5o7G1RK6llScYJuQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=os9o07+nrnK7sLr5gGetfnr4iAA99KxYNEZbIXJtNRI=; b=Cl8dGZKuqb4jqCWhSstCcKeoPz/spbHGCcPRx832j9uEfFB1f2/LBkCU7VEUvHI1DGbtYLTnEnNAZk7m/ykOYhNEV39FijDbu8DH2kXTxRFcn54M1POKzHAyzQRMOcCLCL2MHJx2e4V8+MsWWCQXt/YJ8QO1i+pUDeb5pbZ0gNfZJwt9Fxx6Dl9pZmGtsz8c6WEPPLK6wGfmcMh6LzJduU4wQM+94TkrK/CIGwOmxuq8xLhrL9TttGLFMt+o5vIw1XneCvw6truWe5t/zUCgIHTVy3IZruIAfJEttWZTutkpg+l4MpF6hnZWhm695zLGpNb7okdW1vXJIucS3tnrTQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=tavis.ca; dmarc=pass action=none header.from=tavis.ca; dkim=pass header.d=tavis.ca; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tavisdev.onmicrosoft.com; s=selector2-tavisdev-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=os9o07+nrnK7sLr5gGetfnr4iAA99KxYNEZbIXJtNRI=; b=UIVnLPWu3RNWg+TmyWQXF/NxlQ1UzwDV2y+LIsD+wHKtBAq9KFP3mniqQ2kxrp8k1/Pd0BULifkCIXlzphara2SsRJHuGhkN1H9IOL5q9iHjee2yObDlJXSSl0qfMp1w/C7jVw5W87juXRt8Z4cSLef68Hl2A61D/rI5LRqlOug=
Received: from SJ2PR01MB8102.prod.exchangelabs.com (2603:10b6:a03:4fd::17) by SA1PR01MB6621.prod.exchangelabs.com (2603:10b6:806:1a7::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Wed, 17 Apr 2024 03:02:41 +0000
Received: from SJ2PR01MB8102.prod.exchangelabs.com ([fe80::3d5b:3882:4915:e8d8]) by SJ2PR01MB8102.prod.exchangelabs.com ([fe80::3d5b:3882:4915:e8d8%2]) with mapi id 15.20.7452.049; Wed, 17 Apr 2024 03:02:41 +0000
From: Darrel Miller <darrel@tavis.ca>
To: "media-types@ietf.org" <media-types@ietf.org>
Thread-Topic: [media-types] Thoughts on suffixes, single and multiple
Thread-Index: AQHakGt0AmL227ADn0egeJj0+Y6oMQ==
Date: Wed, 17 Apr 2024 03:02:41 +0000
Message-ID: <SJ2PR01MB8102985A55F6AFCD88859FD7A30F2@SJ2PR01MB8102.prod.exchangelabs.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=tavis.ca;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: SJ2PR01MB8102:EE_|SA1PR01MB6621:EE_
x-ms-office365-filtering-correlation-id: 6f535871-84df-42d2-0a84-08dc5e8ad881
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: VjbvdcJfypP1tzK9gWqf7vX9/KuFB+W6fOua67GqSgy5l0HK+cNVPpqm07dzswfZJnYPDE6Q/ZQTyvcyjLKbXciJrZTFoMFNSFEigKb6vi+3OwJQog43eXfhRwlzyXlP4F2ScXbtsTixSlVS8wY5rshxGOQdIhCG61QNv+4ehnCW2kytmtjSiqgfiIYX/FLQ8A78RwfHa/a5d/RvnJsDKlwvSHH5iZJeb17yUUfn82rngR0ST289V+SXdsS9VEz2SgUojYpNl2dokrnOLDGZo0U/nGIf0oTNA1O8Ulp5q32tYQ4FZiHx9J+dTg5gDoR4z2EDToyB58PCG1/Fh3mdvVs/Wejz5QlanexbtJ6BF5dm54+RL53/C9BEIaj1cQyepyHB6Dh3UWTEP6Y8Gb+4FmrT8YGgLot3yGGDGEjGXK2n24XtXuNe6o6dNQLpHcOGiy/ZZYjgBa5Y1IVe08z81Ut3mPXtJHF7NkwYX2sOV4bOwoQdk+a4pWEHAvkEkkR91Rj8/EabyOMZgaG49rqAoGiXBCGoZI4z3vvDYGse55Ptom9ZD+I7XfLwEu0RGvcHTAFvB9CQZLvWOfVJJvdTSJjERCzpJpf3xauDArpqzbmFqHqhZyXIc2dRmpujJfyuK7inuBE/bZhkMdbRRW0iUtF3p1BpYaMLz0UVPR5Le90=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ2PR01MB8102.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(366007)(1800799015)(38070700009); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: kwQWrAD5uVeUGTEStmphPeJNGUZ0aWW2qun45/2qi7ValdluJJ6TiaI11zfYV7uMhXU9tsZbpnCjVWaIiY4UwaK7sHa/DPOA74URpHKVHmlc/7nGNSkVG4b+mq6TKDSG/h/csf32dYYNzyBt550dNC4U7M1eg9FdkguJ2aU6WqhG3XqhFXo7ezygWgNtmdu3iXYFlAkW8rVOfVHKTMbAIbgetMWy3VBZn+rrKrt7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v/hsG5mCRNCP5xRQCLUzQAB9aluk9t9WmGHRk6c52K33EPmCoV6PcxDJpWsPbXWiSn4pUDX/Ew4H1vCChMpTOLOvu0pQF1wsZCydQpuzV+jMOpzwJ1UCdDyUFWW+iO4GeYrx+CiVasK/DvB8wbPK6X/Pm1KR7+Z52U4/6nN8oNa3LH6yscf4rludlJSzNUDETtTghU3J5kizPFEiAZipv1wqVrZU9OEDk+jnoMyEUNgji359w6Y1iIjA=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: tavis.ca
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: SJ2PR01MB8102.prod.exchangelabs.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 6f535871-84df-42d2-0a84-08dc5e8ad881
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2024 03:02:41.0511 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8cea02ec-9788-4bac-a19b-3e782a3e9bb0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 95oCt9PakxicB8T6cDl0JgRxBqg+tUNEvN+frBLhYiJ8WMQwQbHC3FUNQDz5vYso
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR01MB6621
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/k8lIESiCreFZzd6_oLO5LBYq2Kk>
Subject: [media-types] Thoughts on suffixes, single and multiple
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.39
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, 17 Apr 2024 03:02:48 -0000

As a follow up to the tests that I did to see if any of the major browsers respect +json, which they didn't, I tried the same experiment with +xml and got the same results.  None of the browsers I tried, used the +xml suffix to cause XML rendering.

This leads me to feel like that we are debating over what is theoretically possible, but in the 23 years since suffixes were formalized, that theoretical value has not been widely realized. We do not have a clear guidance on what the suffix means.  For example,  +json and +gzip are achieving quite distinct goals. We have seen that introducing multiple suffixes has raised a range of new concerns that we do not have clear answers for.

Most of the proposed uses of single and multiple suffixes that I have seen are either trying provide an encoding format that overlaps with Content-Encoding, or they are being used as a indicator to client or server of the specific format of some content where multiple contents are supported.

An example of the latter scenario is what we have been trying to do with the registration of the media type for OpenAPI descriptions https://www.ietf.org/archive/id/draft-ietf-httpapi-rest-api-mediatypes-05.html#section-2.1

The proposal is to register application/openapi+yaml and application/openapi+json.  This allows clients to conneg the format they desire and servers to advertise the format they are returning.

However, upon reflection of all this conversation around suffixes, my question is why not do this?

application/openapi;format=yaml
application/openapi;format=json

By defining an optional format parameter for the media type, we only have to have one registration, we get the same value and a client has the option to omit the format if either is supported.

John Klensin made the comment in one of the recent IETF mediaman meetings that parameters for media types were created to prevent there being an explosion of media type registrations.

Is there a reason why media type parameters cannot be used in many of these other use cases that are currently struggle to shoehorn information into suffixes?

e.g.
application/vc;format=jsonld
application/did;format=jsonld
application/voucher;format=json;sig=jose
application/voucher;format=cbor;sig=cose


I think suffixes were an experiment into encoding some meaning into part of a media type name that did not produce the desired results. I don't believe that if we decided to remove that meaning that anything on the internet will break.  Existing suffixes can remain, but I think moving forward we should be looking towards leveraging parameters, not suffixes for capturing meta information about media types.

Darrel