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

Francis Galiegue <fgaliegue@gmail.com> Thu, 11 April 2013 13: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 46B3921F8AE7 for <apps-discuss@ietfa.amsl.com>; Thu, 11 Apr 2013 06:54:02 -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 fOzOj0fq3FsR for <apps-discuss@ietfa.amsl.com>; Thu, 11 Apr 2013 06:54:00 -0700 (PDT)
Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by ietfa.amsl.com (Postfix) with ESMTP id 9CC8321F8D0F for <apps-discuss@ietf.org>; Thu, 11 Apr 2013 06:53:59 -0700 (PDT)
Received: by mail-ee0-f41.google.com with SMTP id c1so799495eek.28 for <apps-discuss@ietf.org>; Thu, 11 Apr 2013 06:53:58 -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=T/Z0pSyNVIvVx3G7/p2XLV2AenxZ6UyGKKxuWBmNwxY=; b=uK0dCQ7OvKLJBSNERc/31dwuf5vJlF4lyLnNZeqBftRwGLNx6eIUrfHDJ8bd3i4csD AiAeeAEahfanZvoSo2b23smCUzk6EigXpY5hsHMzZlbvZJuBZjWN1xxz8dyOOgIuUhIl vuK1+wFmWpjCFlR1yKPjdk4NxLX5CHgZM5UVZAXEXBINEbfRhJVhwjipfqkQ7wISHWI4 5DCNTjv4tKE9m0/WOjZzmkWFhgFTMOtp2iBEOww3ReOom00F2yv6vhD004zh5CTWTHJ1 LWk8lJq/QkWHeJRwvsCexvzS4hWVL64/6iGu1hVB0iI/Cxknu68suNmAoOSZyWhsihva 3yPw==
MIME-Version: 1.0
X-Received: by 10.14.179.201 with SMTP id h49mr17208905eem.26.1365688438663; Thu, 11 Apr 2013 06:53:58 -0700 (PDT)
Received: by 10.14.213.4 with HTTP; Thu, 11 Apr 2013 06:53:58 -0700 (PDT)
In-Reply-To: <CAL0qLwaoaYbnHiYCuxC050Yn=G3C5skG5m9mkb_SvO0Yhkf8hw@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> <CALcybBCeyJce+m7GB8ak_Wmwfk6+Z=bcaDKs489H0v4vLOgahw@mail.gmail.com> <CABP7RbfLQ5wCTNEJ4ufEs76YoVBePP8JYLQkjgUHJQ-o3=pUeg@mail.gmail.com> <CAL0qLwYsVt63VAtg0yqG=KDO7e1DvmE-8ywXM8CBqrt8mxDZOA@mail.gmail.com> <CABP7RbfDOS4pdnx5Z4arwLw8demRfKrT4bE+Jb4uzvcdgzKRfw@mail.gmail.com> <CAL0qLwaoaYbnHiYCuxC050Yn=G3C5skG5m9mkb_SvO0Yhkf8hw@mail.gmail.com>
Date: Thu, 11 Apr 2013 15:53:58 +0200
Message-ID: <CALcybBB11EENT6dbxy0Wgb2cVUmuhxbnKOuVirvjd++R6f=5QA@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>, Joe Gregorio <joe@bitworking.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: Thu, 11 Apr 2013 13:54:02 -0000

On Mon, Apr 8, 2013 at 10:40 PM, Murray S. Kucherawy
<superuser@gmail.com> wrote:
[...]
>
> Everywhere else in the document refers to a list as (value[, value[, ...]]).
> So it seems to me "()" is the empty list, while "[]" is not.
>

Then what would it be? There is no empty list defined at all in the
RFC examples.

I agree that there should be an errata, defining expansion behaviour
for all of these corner cases. Right now, only the tests at
https://github.com/uri-templates/uritemplate-test make any mention of
it and there seems to be a disagreement on how these should be
handled.

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