Re: [apps-discuss] more feature requests, was: JSON patch: "test" operation

"Paul C. Bryan" <pbryan@anode.ca> Tue, 20 March 2012 16:34 UTC

Return-Path: <pbryan@anode.ca>
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 5155E21F8637 for <apps-discuss@ietfa.amsl.com>; Tue, 20 Mar 2012 09:34:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
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 m+jXV0PifhHz for <apps-discuss@ietfa.amsl.com>; Tue, 20 Mar 2012 09:34:04 -0700 (PDT)
Received: from maple.anode.ca (maple.anode.ca [72.14.183.184]) by ietfa.amsl.com (Postfix) with ESMTP id 9BDB021F8634 for <apps-discuss@ietf.org>; Tue, 20 Mar 2012 09:34:04 -0700 (PDT)
Received: from [192.168.11.246] (unknown [209.52.95.5]) by maple.anode.ca (Postfix) with ESMTPSA id 3DDB86456 for <apps-discuss@ietf.org>; Tue, 20 Mar 2012 16:34:04 +0000 (UTC)
Message-ID: <1332261243.2171.8.camel@neutron>
From: "Paul C. Bryan" <pbryan@anode.ca>
To: IETF Apps Discuss <apps-discuss@ietf.org>
Date: Tue, 20 Mar 2012 09:34:03 -0700
In-Reply-To: <4F68AC76.40904@gmx.de>
References: <4ED64A26.5030003@gmx.de> <BC564D94-6D00-4D63-863A-8AAD00E57B3A@tzi.org> <4ED77513.3070506@gmx.de> <6E443D75-D1AC-451F-9B17-115C9A6C7696@mnot.net> <4ED7F8C2.9030804@gmx.de> <37E09A53-E9F4-45D2-BB8F-79655BECDBB2@mnot.net> <1322779521.1958.1.camel@neutron> <4EFC8A08.7000105@gmx.de> <1325222688.18477.25.camel@neutron> <4F68AC76.40904@gmx.de>
Content-Type: multipart/alternative; boundary="=-ZBjPDt3KbGBro4S80ChY"
X-Mailer: Evolution 3.2.2-1
Mime-Version: 1.0
Subject: Re: [apps-discuss] more feature requests, was: JSON patch: "test" operation
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, 20 Mar 2012 16:34:05 -0000

This was discussed previously, and the consensus at the time was for
must-understand.

Paul

On Tue, 2012-03-20 at 17:12 +0100, Julian Reschke wrote:

> On 2011-12-30 06:24, Paul C. Bryan wrote:
> > On Thu, 2011-12-29 at 16:40 +0100, Julian Reschke wrote:
> >> Hi there,
> >>
> >> in discussions in Apache Jackrabbit space, two more features have been
> >> mentioned as potentially useful:
> >>
> >> 1) The ability to send additional data along with the actual patch; such
> >> as a plain text string describing the change (think "commit" message),
> >> or user information.
> >
> > I've had a few thoughts here.
> >
> > First, I think commit messages should probably be out of scope for JSON
> > Patch specifically. That said, we should allow the ability to build on
> > the specified format, allowing for extensions, including additional
> > (more domain-specific) operations.
> >
> > I'm generally against the idea of using out-of-band metadata such as
> > header fields in an HTTP request, mostly because it ties metadata to the
> > transfer protocol rather (what I believe rightly should be tied to the
> > document).
> >
> > I'm interested in feedback on the possibility that I add text stating
> > that if an operation cannot be determined for a given patch object, then
> > an implementation should ignore it. Thoughts?
> > ...
> 
> That's exactly the question we need to answer; is the extensibility 
> model "must understand" or is it "must ignore"? In the latter case, 
> people can define their own operators, such as "commit-message". But of 
> course it would make it harder to define new operators later on.
> 
> If JSON had a comment syntax there would be a simple, although a bit 
> hacky way to extend the format. But it does not...
> 
> Best regards, Julian
> _______________________________________________
> apps-discuss mailing list
> apps-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/apps-discuss