Re: [media-types] [Netconf] request review of media type application/yang-data+xml

Andy Bierman <andy@yumaworks.com> Tue, 05 July 2016 16:58 UTC

Return-Path: <andy@yumaworks.com>
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 797AE12D128 for <media-types@ietfa.amsl.com>; Tue, 5 Jul 2016 09:58:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.235
X-Spam-Level:
X-Spam-Status: No, score=-1.235 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 5EQp2qMC1Tug for <media-types@ietfa.amsl.com>; Tue, 5 Jul 2016 09:58:04 -0700 (PDT)
Received: from pechora3.lax.icann.org (pechora3.icann.org [IPv6:2620:0:2d0:201::1:73]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C4A6212D16F for <media-types@ietf.org>; Tue, 5 Jul 2016 09:58:04 -0700 (PDT)
Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) by pechora3.lax.icann.org (8.13.8/8.13.8) with ESMTP id u65GviOA019112 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for <media-types@iana.org>; Tue, 5 Jul 2016 16:58:04 GMT
Received: by mail-vk0-x230.google.com with SMTP id m127so212888767vkb.3 for <media-types@iana.org>; Tue, 05 Jul 2016 09:58:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=8zW7yRijyJzhku/hHyQjFeOCWtm1ByB4aSO84WHT9Og=; b=zM74Xwix1weFhlwmmps0e+bPxw5+YgqnOyKY6/IZZ4VK6oaJWRicb7wCEpUnxpMuwW xFKneVhFe2v9Cmh/iiN8lF+0rr3ICvUMojGg2WKT+ksMwnnK1XTdQoqpILZzQJjfktAN je85NJoOhscDcwREPXx6zs9D8YqF91p/Kd2zGRJoeEueOQdtCVoJb6NF2kqaggqet6rs WrcXvI4nkF5Sc+lSv1JjWf9tfR3Hv6Xbk/kMsMbO+68aAQee2qN03EBU4fGWrnhCQgPs MfhYzbjXe45Gq5b5eaKie6mQJTohxoYXYVhC5RLYUbRSoc0TRKlITqcmTbjzmx/h97mK 5jmg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=8zW7yRijyJzhku/hHyQjFeOCWtm1ByB4aSO84WHT9Og=; b=Coj4LOvCLS9ELTuRmAc1PjLVkBz0d+6WirTLhjaDhIQ74bKOtMpTNz9USyn4os93Yn fOpUXYfoCgTezHouR1PPQG0hcgImP3ZSvjm6iCHYBUTSSNEuj1G5CzCjXETaqP+zkJku 2pvNR0wOXEmY/uKB/cyYeLKUPEw10+JuN49Ex3Yj9BP1YAyir7odeIymM1A5RfENDAzP UGHkxz+Ire46/1am7YZC98PqSYOIAAHUd4HQ9WISdND99aL7JSa4CC1d11xSwMx50tYn qlVt+fHKZ+hGLod1YfAJh7U0UK4LmJtSyyWbiW769owssYQ/inzdRmgeQGS14ejkn6kR kmpQ==
X-Gm-Message-State: ALyK8tKMgSLf7RfdOr4//yuyz+01iyyNBLBX6agXZ7arm8848ZJiYCzrB5Ma5CIwYyrIfToAgp3rg3Gvxn9kRQ==
X-Received: by 10.31.60.204 with SMTP id j195mr7766855vka.132.1467737863619; Tue, 05 Jul 2016 09:57:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.103.20.2 with HTTP; Tue, 5 Jul 2016 09:57:42 -0700 (PDT)
In-Reply-To: <20160701.103113.301947010745595267.mbj@tail-f.com>
References: <d99b9905-6dcf-3f8c-1490-d3e6cd2e93df@seantek.com> <8f8db9b8-9917-4b26-25f6-ee0c19492bb9@seantek.com> <CABCOCHT+EREQ3RHV2sRuPN3SxSeaZem6Mi1AoeBf1NRFA2NsyA@mail.gmail.com> <20160701.103113.301947010745595267.mbj@tail-f.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 05 Jul 2016 09:57:42 -0700
Message-ID: <CABCOCHR093usZOFufkJUraG=9qAOvSA2PQ_mvU+YHWs0OsgkBw@mail.gmail.com>
To: Martin Bjorklund <mbj@tail-f.com>
Content-Type: multipart/alternative; boundary="001a1142fff0fc477b0536e659e1"
X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.0 (pechora3.lax.icann.org [IPv6:2620:0:2d0:201::1:73]); Tue, 05 Jul 2016 16:58:04 +0000 (UTC)
Archived-At: <https://mailarchive.ietf.org/arch/msg/media-types/EVvnbhKYIvMwce9Itjinedj_LHk>
Cc: media-types@iana.org, Sean Leonard <dev+ietf@seantek.com>, Netconf <netconf@ietf.org>
Subject: Re: [media-types] [Netconf] request review of media type application/yang-data+xml
X-BeenThere: media-types@ietf.org
X-Mailman-Version: 2.1.17
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: Tue, 05 Jul 2016 16:58:06 -0000

On Fri, Jul 1, 2016 at 1:31 AM, Martin Bjorklund <mbj@tail-f.com> wrote:

> Andy Bierman <andy@yumaworks.com> wrote:
> > removing all text except the fragment identifier issue....
> >
> > According to RFC 7303, sec. 5, any usage of +xml requires implementation
> of
> > the XPointerFramework
> > https://www.w3.org/TR/2003/REC-xptr-framework-20030325/
>
> Actually, it says SHOULD:
>
>    If [XPointerFramework] and [XPointerElement] are inappropriate for
>    some XML-based media type, it SHOULD NOT follow the naming convention
>    '+xml'.
>
> > RESTCONF "fragments" are sub-trees within the YANG data structures.
> > These are accessed by the request URI path and the "fields" query
> parameter.
> > XPointer is rather complex and completely redundant for RESTCONF.
>
> I'm not sure the "element()" scheme is complex to implement.  The
> "fields" query parameter probably takes more effort to implement.
>
> Note though that the "fields" query parameter is more expressive than
> the "element()" scheme, and it works with other encodings than XML.
> *if* we were to use XPointer instead of "fields", what would we do for
> JSON?
>


IMO it would be a bad idea to have media-specific filtering.
YANG provides an abstraction of datastore contents which we want to be
independent
of the various query response representations found in protocol messages.

We are filtering on the datastore contents, not on the XML representation
of individual query responses.



> > So do we have to add text that a RESTCONF server MUST implement the
> > "element"
> > scheme?
>
> If this indeed is to be interpreted as a requirement, I'd rather not
> use the "+xml" name.
>
>

Are there any objections to dropping the +xml?

What about dropping +json as well?

http://www.iana.org/assignments/media-type-structured-suffix/media-type-structured-suffix.xhtml

This page implies our "fields" parameter MUST NOT overlap with XPointer.



> /martin
>


Andy