Re: [core] content-formats for cbor YANG

Carsten Bormann <cabo@tzi.org> Fri, 21 April 2017 09:00 UTC

Return-Path: <cabo@tzi.org>
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 D1E17129B4C for <core@ietfa.amsl.com>; Fri, 21 Apr 2017 02:00:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 glWPzoSMAaF0 for <core@ietfa.amsl.com>; Fri, 21 Apr 2017 02:00:45 -0700 (PDT)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (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 AB010129B1A for <core@ietf.org>; Fri, 21 Apr 2017 02:00:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [134.102.201.11]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id v3L90fRl024358; Fri, 21 Apr 2017 11:00:41 +0200 (CEST)
Received: from [192.168.217.124] (p5DC7F3A7.dip0.t-ipconnect.de [93.199.243.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3w8V7s2BLfzDHmD; Fri, 21 Apr 2017 11:00:41 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <8ff54501447ab9e681ecfbee04652fb3@xs4all.nl>
Date: Fri, 21 Apr 2017 11:00:40 +0200
Cc: Michel Veillette <Michel.Veillette@trilliantinc.com>, Core <core@ietf.org>
X-Mao-Original-Outgoing-Id: 514458040.705316-795a7d3a54f8339e3c562bd66d924dfa
Content-Transfer-Encoding: quoted-printable
Message-Id: <F5C2B33D-56DF-49E6-9EE9-8B2E4A4BADD3@tzi.org>
References: <c2b6fb6e92c6a5680e544963e88d5fa7@xs4all.nl> <09BD739F-89A1-4DA7-9006-E30AEAEE581E@tzi.org> <BN6PR06MB230807D8EF9B69A473254077FE1B0@BN6PR06MB2308.namprd06.prod.outlook.com> <063c4a22d221667a92b180e5dce7ea1f@xs4all.nl> <BN6PR06MB2308B088FCC1DE8AD1370C4FFE1B0@BN6PR06MB2308.namprd06.prod.outlook.com> <102478F5-703D-46C0-9A0B-A21454F940DB@tzi.org> <BN6PR06MB23088F3C7FB189B774466177FE1B0@BN6PR06MB2308.namprd06.prod.outlook.com> <091EF847-AD5E-40D8-B04C-CDBDA47023F1@tzi.org> <8ff54501447ab9e681ecfbee04652fb3@xs4all.nl>
To: peter van der Stok <consultancy@vanderstok.org>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/srPJwMj6F3NxZwg3tNZ3zK-nPiA>
Subject: Re: [core] content-formats for cbor YANG
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: Fri, 21 Apr 2017 09:00:47 -0000

On Apr 21, 2017, at 09:18, peter van der Stok <stokcons@xs4all.nl> wrote:
> 
> Because the CoMI text now says that the payload of an array of one item can be optimized to just one item,
> I like to suppress the yang-value+cbor and only retain the yang-values+cbor

That would create an ambiguity if a value can ever be an array.

What is so bad about the media type being very specific about what the payload is?

Grüße, Carsten