Re: [apps-discuss] Question about URI template and expansion of an empty list

Francis Galiegue <fgaliegue@gmail.com> Mon, 08 April 2013 12:54 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 23B9621F92B2 for <apps-discuss@ietfa.amsl.com>; Mon, 8 Apr 2013 05:54:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[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 Z+W3nz5NEW3Z for <apps-discuss@ietfa.amsl.com>; Mon, 8 Apr 2013 05:54:37 -0700 (PDT)
Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) by ietfa.amsl.com (Postfix) with ESMTP id 09E8B21F9058 for <apps-discuss@ietf.org>; Mon, 8 Apr 2013 05:54:36 -0700 (PDT)
Received: by mail-ee0-f53.google.com with SMTP id c13so2260571eek.12 for <apps-discuss@ietf.org>; Mon, 08 Apr 2013 05:54:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=aO/fquWfDicCJwkYjeSW5mwY/D1kFQjCsX7vcrugLNM=; b=nv6MQ3DWwmv7bn47KJkhNiUNUGSbM5siSQBDLrjMmWFCUx1e6kVf+HZcg3I914vIAm N+kEJBUxWtUBKiVi/7wJD0ZGERY6822glpzKGcnMRpRXOhagIGr0D2izyMUl9A9so3SI cGRXoHh5jdlWIMgtbX2Fwjgr0DedD7ATHEk2B2CLUW6C47pv7C+vQB4B8rKgJb8QfUbc cndca7wfMAdfJhdMjd26XJ+x3xwSFHY2qzXSzjibWpm815+Sb1QTLagDsdljHkVZyatV 4eC6ahXGHSj9JduEzO1jZMm9beIZw9iUjKevwTD1Lmp+Li6FuDe7CqdeFOyzEf+Yx4RP uIyg==
MIME-Version: 1.0
X-Received: by 10.14.179.5 with SMTP id g5mr48757094eem.41.1365425674414; Mon, 08 Apr 2013 05:54:34 -0700 (PDT)
Received: by 10.14.213.4 with HTTP; Mon, 8 Apr 2013 05:54:34 -0700 (PDT)
In-Reply-To: <CAL0qLwYR+HknkVH5Y_jusqBv3=QbALFe=5t3FhYArNxzQYDPpQ@mail.gmail.com>
References: <CALcybBBXFDvAp1xpbi4=55Gq0QbfbTH7TV=1MTko7nNdtt-5WQ@mail.gmail.com> <CALcybBBcCTh8+RVWp5UW+2-s9EdKxdoeGdcq6+yGrGJk1nzP0w@mail.gmail.com> <51625870.8000906@berkeley.edu> <CAL0qLwYR+HknkVH5Y_jusqBv3=QbALFe=5t3FhYArNxzQYDPpQ@mail.gmail.com>
Date: Mon, 8 Apr 2013 14:54:34 +0200
Message-ID: <CALcybBCeyJce+m7GB8ak_Wmwfk6+Z=bcaDKs489H0v4vLOgahw@mail.gmail.com>
From: Francis Galiegue <fgaliegue@gmail.com>
To: "Murray S. Kucherawy" <superuser@gmail.com>
Content-Type: text/plain; charset=UTF-8
Cc: IETF Apps Discuss <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] Question about URI template and expansion of an empty list
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: Mon, 08 Apr 2013 12:54:38 -0000

On Mon, Apr 8, 2013 at 8:55 AM, Murray S. Kucherawy <superuser@gmail.com> wrote:
> I'm inclined to think it's "X." for the same reason "X{.empty}" is "X.",
> which is to say that an empty list, like an empty string, isn't undefined,
> but there is indeed nothing to expand.
>
> Either way, there may be grounds for an erratum here.  The RFC does talk
> about handling empty strings, but not empty lists.  The closest is Section
> 3.2.1 which talks about "expansion of a defined, non-empty value", meaning
> defined, empty values aren't explicitly covered in the prose as far as I can
> see.
>

Similarly, it doesn't talk about extending empty maps.

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