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

Francis Galiegue <fgaliegue@gmail.com> Fri, 05 April 2013 18:39 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 3752C21F97CF for <apps-discuss@ietfa.amsl.com>; Fri, 5 Apr 2013 11:39:56 -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 AkX53c+qsC1C for <apps-discuss@ietfa.amsl.com>; Fri, 5 Apr 2013 11:39:55 -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 1B63821F97C3 for <apps-discuss@ietf.org>; Fri, 5 Apr 2013 11:39:54 -0700 (PDT)
Received: by mail-ee0-f41.google.com with SMTP id c1so1545373eek.0 for <apps-discuss@ietf.org>; Fri, 05 Apr 2013 11:39:54 -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 :content-type; bh=NGgHty2zkTTfQ6dLGcnD3hLhjEdgk36YsyILtKXmhQs=; b=f0+bdPQrgz8q4PJSHykBkfRX4QCp1bDW76W2U741Cjt9kve4H4VUcOEEtKaD/zCMwm 2feHRwNTqlY0yjSk9Rr9ukS7gTAdKy53+w8MD4IZA3djIEyrWXR3/SI15mswHOVcMpH0 ZhAGVA8NzRY8vAPTcJ0JJ2RudsC//vxyhek8S6BIkptBo0PvbpEVTWfyoHCIdh3IA5zl M6H7pWjPynEL2WNzRpKSDAiq4Nk/1CGzL6HDlaWsvt9AhD/9hOcLj+ws9Jm3vtXF+FiX uTFAyiboZ75jeP3fSIKil1X2ZUuKbILc5uIqDzAWEdndiJsXzEBTol66uY+4cdlpdU1e /U5w==
MIME-Version: 1.0
X-Received: by 10.14.183.198 with SMTP id q46mr22150768eem.1.1365187194210; Fri, 05 Apr 2013 11:39:54 -0700 (PDT)
Received: by 10.14.213.4 with HTTP; Fri, 5 Apr 2013 11:39:54 -0700 (PDT)
Date: Fri, 5 Apr 2013 20:39:54 +0200
Message-ID: <CALcybBBXFDvAp1xpbi4=55Gq0QbfbTH7TV=1MTko7nNdtt-5WQ@mail.gmail.com>
From: Francis Galiegue <fgaliegue@gmail.com>
To: apps-discuss@ietf.org
Content-Type: text/plain; charset=UTF-8
Subject: [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: Fri, 05 Apr 2013 18:39:56 -0000

Hello,

Let us say that there is a variable called "list", whose value is an empty list:

list = []

Now let us have this template:

X{.list}

Should the expansion be "X" or "X."? And, more importantly, why?

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