Re: [Json] Schemas & so on

Phillip Hallam-Baker <ietf@hallambaker.com> Tue, 03 May 2016 19:35 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0970412D5C0 for <json@ietfa.amsl.com>; Tue, 3 May 2016 12:35:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.399
X-Spam-Level:
X-Spam-Status: No, score=-2.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.199, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lpUr6OTNGnBw for <json@ietfa.amsl.com>; Tue, 3 May 2016 12:34:59 -0700 (PDT)
Received: from mail-qg0-x234.google.com (mail-qg0-x234.google.com [IPv6:2607:f8b0:400d:c04::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 23D8312D5D6 for <json@ietf.org>; Tue, 3 May 2016 12:34:59 -0700 (PDT)
Received: by mail-qg0-x234.google.com with SMTP id f92so13244118qgf.0 for <json@ietf.org>; Tue, 03 May 2016 12:34:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=Gj3KLStlRu0KFJo8+zR7g2NI9cHTR+u31fW7YVg4WUk=; b=rNUZ2UPvBVZTR3RxT4teYiWJkOA//BauA+lcwdpZu1QcZWGVDW5WbpB5SjXeIoqFvG KptNu8bQeHK8c6nvG8q9JCB4V9HbTupMQzBCRSbF3q2Qo1/R/xVLtBuGBmmF+fikAgdt AIoQYZJb+HORPxAEM6ndLHOEdzByrQ6Wh4dFLsV2lnXWk2hcA9/iBjDU5DrT1ME0eyzP n5E0jIbMLHkQDUhXkftuT653J/N7XQ0ruUJY2Ktk1U6v+a5CQte8ahAhmTZD5+YgSkFN 35+WWvn8ldIhPOMYjf7yZkvNq1fUmhi5UqEYMa4AqCB34hsKusAOxchsfmpVy1Am8z7w LTdQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Gj3KLStlRu0KFJo8+zR7g2NI9cHTR+u31fW7YVg4WUk=; b=l2lp6IVigipswngaKD8kEaB4ZvjajO/pI3W4jTyH+doPPEOrqoRHNYjBGPlqqQDQrF ABcJXXtgjDzwjxkVj7lGecLfnS+8S4t0p2raiiS78Eqbsw5ewV65Fog2MQ931lZ5mdV/ 7gpdO8xt02uYU7cq7zREEaYD7VEpb3J0+tk+2AumlHFRHXXkqxHo0P8gpU/jIVooCk2x wPh6jaVHKNF15vd8cw+4Nipbbl1jGJNz2IWksYKnvzbEbz+P9Rp+yFj9ALNeeolZFONq qqx0epu++EmgK2jo9kipze4o7RIoIIhcpWZx6V1XUgnYE4WjNy/0Rgim+/yUtp9Hxb2q YoHQ==
X-Gm-Message-State: AOPr4FWZmpf4zeuNnDjctu35NjmEVdQWQIxpdY0g6DpcKZKpbV5CjlJcVCT3LZETSf+ht6ia5rqBAwQjevcv5Q==
MIME-Version: 1.0
X-Received: by 10.141.44.135 with SMTP id v129mr4899044qhe.46.1462304098187; Tue, 03 May 2016 12:34:58 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.55.24.38 with HTTP; Tue, 3 May 2016 12:34:57 -0700 (PDT)
In-Reply-To: <20160503190957.GB6756@mercury.ccil.org>
References: <CAHBU6itCV9MXmALdKtE9-vjUPG6-6ZqdqzrmZkcEzSUysi3S-w@mail.gmail.com> <AC93811D-A16A-4527-B2EB-C6A9FC6D4F17@mnot.net> <CAHBU6iuxaoXvNncw5_8uNaKf5zi+JEw3xhmA_iPN6OVWc+xCcQ@mail.gmail.com> <CAMm+Lwh0TfOuU5dXMAnY8YP1QHHTwhZs2mkgdbjcQ7sLukSX8w@mail.gmail.com> <20160503190957.GB6756@mercury.ccil.org>
Date: Tue, 03 May 2016 15:34:57 -0400
X-Google-Sender-Auth: eUjYcb-M_dQrYgL_m9Xschp25zw
Message-ID: <CAMm+LwjWhO3zJcE+ktjJNh82D0_P5hH-=u_tYPus50Y7H2Vx=g@mail.gmail.com>
From: Phillip Hallam-Baker <ietf@hallambaker.com>
To: John Cowan <cowan@mercury.ccil.org>
Content-Type: multipart/alternative; boundary="94eb2c0bdc24537f3a0531f534be"
Archived-At: <http://mailarchive.ietf.org/arch/msg/json/y_bqCUY25kEWob2nhRGnwmfIra8>
Cc: Mark Nottingham <mnot@mnot.net>, Tim Bray <tbray@textuality.com>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] Schemas & so on
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 03 May 2016 19:35:01 -0000

On Tue, May 3, 2016 at 3:09 PM, John Cowan <cowan@mercury.ccil.org> wrote:

> Phillip Hallam-Baker scripsit:
>
> > 2) Does the parsed JSON data contain all the necessary data fields
> required
> > for the message?
> > 3) Are the fields of the correct type?
>
> These points are just the kind of validation I am talking about.
>
> Agreed. What we do not need is the type of validation XSD gives us:

1) Order in which the elements appear.
2) alternatives
3) model groups
4) the bizaro dual type system in which elments type data and types type
elements.
5) Distinguishing attributes and elements
6) etc.