Re: [Cbor] Map keys?

Felipe Gasper <felipe@felipegasper.com> Mon, 29 April 2019 15:56 UTC

Return-Path: <felipe@felipegasper.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 B310C120330 for <cbor@ietfa.amsl.com>; Mon, 29 Apr 2019 08:56:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=felipegasper.com
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 b5BKWj-C8suL for <cbor@ietfa.amsl.com>; Mon, 29 Apr 2019 08:56:27 -0700 (PDT)
Received: from web1.siteocity.com (web1.siteocity.com [67.227.147.204]) (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 78E8A12004E for <cbor@ietf.org>; Mon, 29 Apr 2019 08:56:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=felipegasper.com; s=default; h=To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MdcyPX8ZPEiic7II1kOfZM4J0YqDGuNGH6MacE6ykdo=; b=Jf4rRHfTExZ14MtIrcUDqWqLU KpY5ieRdPFkH3lxZX6YLWPtUE36WtIIYWjI0aLKZvZhasbaJc+4IuLo2ywvb98DL2dxyDPGpVWLXF x5PhXFU+T1VXLDKi6ulCrhKarsc3/m1UNSsxHg/PfU/3fG9doz3EW4SN28xQmEyHjVKVw131xvzUz aE786LgH7HkQp4JiYkYPwdMgjEsMbAC9rswb5waxHcfQvIbgGLzUlp7DK2iQj75o/ojSTX7ZfXVU/ KMuJkN3xDZJU/HPjX9gd4LAU1A2zT7Q1TBLr92EKwkyrJH57znBmFQlf7qLWEdxmGhwcXTtYySqzT ppU3MDf6w==;
Received: from [149.248.87.38] (port=55939 helo=[192.168.86.20]) by web1.siteocity.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from <felipe@felipegasper.com>) id 1hL8dl-0013GS-5y; Mon, 29 Apr 2019 10:56:25 -0500
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\))
From: Felipe Gasper <felipe@felipegasper.com>
In-Reply-To: <003b01d4fea3$14012250$3c0366f0$@augustcellars.com>
Date: Mon, 29 Apr 2019 11:56:24 -0400
Cc: cbor@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <F0956E51-BE79-4A68-A8CC-97715EB6916C@felipegasper.com>
References: <8269CD1C-B024-4961-A889-C8543502596A@felipegasper.com> <003b01d4fea3$14012250$3c0366f0$@augustcellars.com>
To: Jim Schaad <ietf@augustcellars.com>
X-Mailer: Apple Mail (2.3445.104.8)
X-OutGoing-Spam-Status: No, score=-1.0
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - web1.siteocity.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - felipegasper.com
X-Get-Message-Sender-Via: web1.siteocity.com: authenticated_id: fgasper/from_h
X-Authenticated-Sender: web1.siteocity.com: felipe@felipegasper.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/o41_Qo2VB0I8w6GC2jTWxiD9pGc>
Subject: Re: [Cbor] Map keys?
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 29 Apr 2019 15:56:30 -0000

Done.

-FG

> On Apr 29, 2019, at 11:49 AM, Jim Schaad <ietf@augustcellars.com>; wrote:
> 
> Please file an errata on this.  The text should be “In JSON,…  CWT uses strings,…”  The document is talking about what CWT uses for keys and not what CBOR is using for keys.
>  
> Jim
>  
>  
> From: CBOR <cbor-bounces@ietf.org>; On Behalf Of Felipe Gasper
> Sent: Monday, April 29, 2019 6:39 AM
> To: cbor@ietf.org
> Subject: [Cbor] Map keys?
>  
> Hello,
>  
> I’m looking at RFC 8392, which says:
>  
> ——-
> In JSON, maps are called objects and only have one kind of map key: a string. CBOR uses strings, negative integers, and unsigned integers as map keys. The integers are used for compactness of encoding and easy comparison. The inclusion of strings allows for an additional range of short encoded values to be used.
> ——-
>  
> While this doesn’t directly say per se that CBOR _only_ uses strings and integers as map keys, the implication seems strong. I don’t see any such limitation in the CBOR RFC.
>  
> Does CBOR intend, then, to restrict map keys to only major types 0, 1, and 3?
>  
> Thank you!
>  
> -Felipe
> _______________________________________________
> CBOR mailing list
> CBOR@ietf.org
> https://www.ietf.org/mailman/listinfo/cbor