[apps-discuss] Should this patch succeed?
Francis Galiegue <fgaliegue@gmail.com> Tue, 12 March 2013 20:03 UTC
Return-Path: <fgaliegue@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C2FCA11E8136 for <apps-discuss@ietfa.amsl.com>; Tue, 12 Mar 2013 13:03:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.499
X-Spam-Level:
X-Spam-Status: No, score=-3.499 tagged_above=-999 required=5 tests=[AWL=0.100, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wOp5MS6Jlyq2 for <apps-discuss@ietfa.amsl.com>; Tue, 12 Mar 2013 13:03:38 -0700 (PDT)
Received: from mail-ee0-f52.google.com (mail-ee0-f52.google.com [74.125.83.52]) by ietfa.amsl.com (Postfix) with ESMTP id 1B08A11E80E2 for <apps-discuss@ietf.org>; Tue, 12 Mar 2013 13:03:34 -0700 (PDT)
Received: by mail-ee0-f52.google.com with SMTP id b15so115168eek.11 for <apps-discuss@ietf.org>; Tue, 12 Mar 2013 13:03:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to:cc :content-type; bh=YfkazRpCgznSXG1+07vBrHpL/w6a/JQ64Zrj1xerokY=; b=j9N2ys6wY0vj0/ATJ6fxTs5OJVN/Dobpxrq19vYFuD+ClCcCXHQBzMg/41ffXB+/wu 6MDoL24dpQ0GrdGBNFf8D1dRoAgGJaNKW13TfIZ1TuVv+To15U3fs6QXEZmPiGrQpxte 6ZFXJDGHEZm7O727wCsgctmqUPQmAQKyUusa9BrIqaS/1FG3zdFwAjkJGeN4YSHbevxQ M8hItiRkBl+8FTdEIUqzrHsHTR53zkg0wx65EmVAtlmnOODn3FifSnPi4aPetxFzuoDW kaGDlvTBxhLhcsf6T2yBrH0Hg3QwgQ6Ftf+5TD4lR9/rebMZLB9101+Rdo74iV8pQ5Au rUEg==
MIME-Version: 1.0
X-Received: by 10.14.110.68 with SMTP id t44mr1309181eeg.25.1363118610765; Tue, 12 Mar 2013 13:03:30 -0700 (PDT)
Received: by 10.14.1.7 with HTTP; Tue, 12 Mar 2013 13:03:30 -0700 (PDT)
Date: Tue, 12 Mar 2013 21:03:30 +0100
Message-ID: <CALcybBDsSpT24QeY_bE48cyp8dR5gGcBd32ev5--3EWh2RoNHw@mail.gmail.com>
From: Francis Galiegue <fgaliegue@gmail.com>
To: Mark Nottingham <mnot@mnot.net>
Content-Type: text/plain; charset="UTF-8"
Cc: apps-discuss@ietf.org
Subject: [apps-discuss] Should this patch succeed?
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.12
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: Tue, 12 Mar 2013 20:03:44 -0000
On Tue, Mar 12, 2013 at 4:44 PM, Francis Galiegue <fgaliegue@gmail.com> wrote: > On Tue, Mar 12, 2013 at 3:56 PM, Mark Nottingham <mnot@mnot.net> wrote: >> Test cases are still more than welcome: >> https://github.com/json-patch/json-patch-tests >> One test reads something akin to this: [ { "op": "add", "path": "/0", "value": 1 } ] With input [], it is expected to give output [ 1 ]. However the spec says: [... ]The specified index MUST NOT be greater than the number of elements in the array. If the "-" character is used to index the end of the array (see [JSON-Pointer]), this has the effect of appending the value to the array. Strictly speaking, here the 0 in "/0" is not strictly greater than the number of elements but it is an element which does not exist. And it would seem that "/-" is the recommended approach here. So, should this patch succeed? Was it the real intent of the text, or was is meant to be "the specified index MUST refer to an existing index in the array. If the character is" etc etc? -- Francis Galiegue, fgaliegue@gmail.com JSON Schema in Java: http://json-schema-validator.herokuapp.com
- [apps-discuss] Should this patch succeed? Francis Galiegue
- Re: [apps-discuss] Should this patch succeed? Paul C. Bryan