Re: [apps-discuss] Question about draft-snell-merge-patch-08

Francis Galiegue <fgaliegue@gmail.com> Mon, 17 February 2014 08:56 UTC

Return-Path: <fgaliegue@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A35D31A00BF for <apps-discuss@ietfa.amsl.com>; Mon, 17 Feb 2014 00:56:28 -0800 (PST)
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, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
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 xYLilQfapNVx for <apps-discuss@ietfa.amsl.com>; Mon, 17 Feb 2014 00:56:27 -0800 (PST)
Received: from mail-ea0-x22b.google.com (mail-ea0-x22b.google.com [IPv6:2a00:1450:4013:c01::22b]) by ietfa.amsl.com (Postfix) with ESMTP id B8DB11A00B6 for <apps-discuss@ietf.org>; Mon, 17 Feb 2014 00:56:26 -0800 (PST)
Received: by mail-ea0-f171.google.com with SMTP id f15so6999690eak.16 for <apps-discuss@ietf.org>; Mon, 17 Feb 2014 00:56:23 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lvaIP2/BP6MDdgTjQIKs05hyTzKEiO0Sq9nYi0EIqZU=; b=P1vDal/XOge9+ArzN9P1EuUoSE1mVxbAPGFZ7Wi2gyBS298f2VzDWzT7VtCpQHgXjV ZTdwFc4smJ3nlJoZ1Ty8QzKUrlDgx6ADIyHR3hXY0++IUzM2Kh9IgzKbx1QvPtpJwxds Am4Rs7/0m8iElsDx9TTkF2gC7ukj42GNCs0KpFf5ROUI4yC6DxYrmgm8shyFzGGHf3ex EiQVAW2LW/UqPZAEG+tDWy7S31sJcJBwcMMyxhUVYwwAo7MThvrE+TzISedyiMgfXDjq TFqHx0ojdLGrTJ+DgvkKEF0+698tidePZMoXOWh86Lc/PjANuDOCqk2OCbhvqYvVEYBW TDfQ==
MIME-Version: 1.0
X-Received: by 10.14.203.197 with SMTP id f45mr807524eeo.90.1392627383858; Mon, 17 Feb 2014 00:56:23 -0800 (PST)
Received: by 10.14.223.132 with HTTP; Mon, 17 Feb 2014 00:56:23 -0800 (PST)
In-Reply-To: <CALcybBBWC-mXPxhiEALP+M=TmfsJGddr=0_DYqCqQsz3bvdBsA@mail.gmail.com>
References: <CALcybBAtKofVGcE0Kmq1zRc85VdS4ngPSoBxhxXb-6vEv4oOJQ@mail.gmail.com> <255B9BB34FB7D647A506DC292726F6E1153B519138@WSMSG3153V.srv.dir.telstra.com> <CALcybBBWC-mXPxhiEALP+M=TmfsJGddr=0_DYqCqQsz3bvdBsA@mail.gmail.com>
Date: Mon, 17 Feb 2014 09:56:23 +0100
Message-ID: <CALcybBB5QHFOq0ZFsO7mwkkR-5g8fdMpk-f=Kux+_WOBa469Fg@mail.gmail.com>
From: Francis Galiegue <fgaliegue@gmail.com>
To: "Manger, James" <James.H.Manger@team.telstra.com>
Content-Type: text/plain; charset="UTF-8"
Archived-At: http://mailarchive.ietf.org/arch/msg/apps-discuss/5T7K0R9vxF4yQORDa1kUAyNMVy8
Cc: "apps-discuss@ietf.org" <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Question about draft-snell-merge-patch-08
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss/>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Feb 2014 08:56:28 -0000

[...]
>
> However, there is also that text in section 2, which kind of troubles
> me, since there are no examples:
>
>           [...] Any null member contained in a provided array MUST be
>           ignored and treated as if the member was undefined, even
>           within array or object members within the array.
>
> Uhm. So, does this mean that if the value is:
>
> [ 1, null, { "a": null } ]
>
> then it really should be patched to:
>
> [ 1, {} ]
>
> ?
>
> Also, in point 1 (ie, both the patch and victim are arrays), it only
> says that "Any null member contained in the merge patch MUST be
> ignored and treated as if those members are undefined". What are
> members here? Does that include array elements?
>

OK, my bad, there are examples further down in the draft showing how
to deal with nulls.

Sorry for the noise,
-- 
Francis Galiegue, fgaliegue@gmail.com
JSON Schema in Java: http://json-schema-validator.herokuapp.com