[core] draft-ietf-core-links-json

Jim Schaad <ietf@augustcellars.com> Sun, 02 July 2017 06:25 UTC

Return-Path: <ietf@augustcellars.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 92E4B129B5D; Sat, 1 Jul 2017 23:25:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.895
X-Spam-Level:
X-Spam-Status: No, score=-0.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, LOCALPART_IN_SUBJECT=1.107, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=augustcellars.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 Cs7XXjUKUCCg; Sat, 1 Jul 2017 23:25:41 -0700 (PDT)
Received: from mail4.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2BAB11200F1; Sat, 1 Jul 2017 23:25:41 -0700 (PDT)
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
Content-Language: en-us
DKIM-Signature: v=1; a=rsa-sha256; d=augustcellars.com; s=winery; c=simple/simple; t=1498976729; h=from:subject:to:date:message-id; bh=eX3mhST3fTXsRVBvw9qCBCFQiRgU+nSO3KQycken2Mw=; b=b8Ej3WD9gz9mWoRbSuLyQLUhQS8YlYdozY4eBPH7KNjt9xq1jofFWsRS0DP+cKgh/WzRko4QeXR eBT/RbB0rdSFp221f0TfHGHsk3hr9shBphUnPZHJ0e9FW4AcbO30ANtqDC+VwDFx9oQWJ3CRAONhP MVFcqdA1g98h98TSq1t+QLcQJ69ljV59/mWdXeKox2ljrjeB9FtwItvexQnp2OV5XFujisnLhnRfz /3BzGjsdsYWvFw7wX/LQ9G21oQPlXYA+E7UInJ+3uZHz9bES2RuNAiK4IFcVSAqWYKlxOzYDdXwoM d57HEZoCyIe486VT/IJ01V9aPqZl3welpARg==
Received: from mail2.augustcellars.com (192.168.1.201) by mail4.augustcellars.com (192.168.1.153) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Sat, 1 Jul 2017 23:25:28 -0700
Received: from Hebrews (24.21.96.37) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1263.5; Sat, 1 Jul 2017 23:25:26 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: draft-ietf-core-links-json@ietf.org
CC: core@ietf.org
Date: Sat, 01 Jul 2017 23:25:30 -0700
Message-ID: <00e101d2f2fc$023b0b30$06b12190$@augustcellars.com>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdLy+OzNkdImdXNSTKuMxHZBEjhwYg==
X-Originating-IP: [24.21.96.37]
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/1Ofv03xre6euzDouPmyvvxHHw4w>
Subject: [core] draft-ietf-core-links-json
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 02 Jul 2017 06:25:43 -0000

While I realize this document is with the IESG, I was trying to work on my
link format implementation so I decided to read this document to see if I
could get it implemented for CBOR at the same time.  While doing this I came
up with the following:

1.  I believe that it would be worthwhile to say why the decision not to
encode items which match the "Cardinal" rule are not using the CBOR integer
types.  If I made a guess I would guess it is because JSON does not handle
integers correctly but I do not know that for a fact.  If this was used then
the encoding would be smaller.

2.  I would like to verify that the following was intended.  In the CDDL,
value appears to be able to support an array that contains both strings and
Booleans mixed together.  That seems to be a strange source and I don't know
it is real.

Jim