[Cbor] Diagnostic Notation: Media Type?
Christian Amsüss <christian@amsuess.com> Sun, 19 March 2023 23:33 UTC
Return-Path: <christian@amsuess.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B2959C151553 for <cbor@ietfa.amsl.com>; Sun, 19 Mar 2023 16:33:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=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
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 LdSUoub7NHP7 for <cbor@ietfa.amsl.com>; Sun, 19 Mar 2023 16:33:49 -0700 (PDT)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8822FC151551 for <cbor@ietf.org>; Sun, 19 Mar 2023 16:33:47 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com ([IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 32JNXiO0077730 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <cbor@ietf.org>; Mon, 20 Mar 2023 00:33:44 +0100 (CET) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (poseidon-mailbox.amsuess.com [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 48FC01D56B for <cbor@ietf.org>; Mon, 20 Mar 2023 00:33:43 +0100 (CET)
Received: from hephaistos.amsuess.com (hephaistos.amsuess.com [IPv6:2a02:b18:c13b:8010::907]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id E89A31FA0E for <cbor@ietf.org>; Mon, 20 Mar 2023 00:33:42 +0100 (CET)
Received: (nullmailer pid 612 invoked by uid 1000); Sun, 19 Mar 2023 23:33:42 -0000
Date: Mon, 20 Mar 2023 00:33:42 +0100
From: Christian Amsüss <christian@amsuess.com>
To: cbor@ietf.org
Message-ID: <ZBeb1i5cwSr+nUr1@hephaistos.amsuess.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="AGE6o0P/TwT3gsl4"
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/bBILX0VZCzTnYR7FsYan6giE1ig>
Subject: [Cbor] Diagnostic Notation: Media Type?
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 19 Mar 2023 23:33:55 -0000
Hello CBOR experts, as Python tools I'm maintaining are gaining support for Diagnostic Notation[1], I found it hard to communicate to syntax highlighters that data is in diagnostic notation due to the lack of a a registred Media Type for Diagnostic Notation. (Also, pygments has no syntax highlighter for it, but that's an issue of its own). I suppose there was deliberation behind not registering anything for DN. After all, this Should Really Not be sent across the network. But then again, Media Types are useful for more purposes than that. Is the use with syntax highlighters (and editor auto-completers and all "that kind" of applications) reason enough to revisit this, and if not, do we have a suggestion what kind of Media Type to use? For example, given that all the mentioned uses are in a sense "local" environments, would "text/x.cbor-diagnostic" make sense? BR Christian [1]: https://cbor-diag.readthedocs.io/ -- To use raw power is to make yourself infinitely vulnerable to greater powers. -- Bene Gesserit axiom
- [Cbor] Diagnostic Notation: Media Type? Christian Amsüss
- Re: [Cbor] Diagnostic Notation: Media Type? Carsten Bormann
- Re: [Cbor] Diagnostic Notation: Media Type? Carsten Bormann