Re: [Json] JSON Schema
Phillip Hallam-Baker <ietf@hallambaker.com> Mon, 22 January 2018 02:25 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 70E78126CC7 for <json@ietfa.amsl.com>; Sun, 21 Jan 2018 18:25:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level:
X-Spam-Status: No, score=-1.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no 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 kwD-z_gsNHHE for <json@ietfa.amsl.com>; Sun, 21 Jan 2018 18:25:34 -0800 (PST)
Received: from mail-ot0-x242.google.com (mail-ot0-x242.google.com [IPv6:2607:f8b0:4003:c0f::242]) (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 26E7A126C19 for <json@ietf.org>; Sun, 21 Jan 2018 18:25:34 -0800 (PST)
Received: by mail-ot0-x242.google.com with SMTP id x4so6228742otg.7 for <json@ietf.org>; Sun, 21 Jan 2018 18:25:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+5zau/DD8OOJcNwZICNQI0fSfVCa11RWfc37hRm1Isc=; b=iwL/zlAXCtS5cxhYTUFXy7LdYm23ezA+IndRLlrobdu+i1aJyTIb3+/lT2herGuomu hNiBnLC/vOQEI1XvMVLVwue6ROHkZ9KonXaqvg9winYnMihB/NdYV6OrrY46uLCLcirn nrWbj0uU0OtgpkDkyu5s7aJuQnEWf0y+CWQ1kgjJ2iT43qHiqIMN7JqximLwjU5EPbv8 oS67/lDFxHKADwf7ws7mBCXA7bI8k9F9yW2TmWK3T+VeCeUKmoAhGs3CPrqeRuA54rQx BbDV40JAVY1a62Al/sBpv5fQnijuNoZNnfKk+SM7PGRFrh/DSkh426XRGjdxlJAHVtE7 gbig==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=+5zau/DD8OOJcNwZICNQI0fSfVCa11RWfc37hRm1Isc=; b=CxZ9oJuTX7eGXg7KCq72wMOppdnFzPd3B7VM6sxHIgPPo+Qo5/P69jC7kYfrZejxZD LFF35kLjq/y31S3Np/TSDG9uANS87MFb9j8EVe6LUh03J5h+0RRCeS8KBq7suMwiU304 T38fCCixkYCkPPs5G6NTNEyZCnHuKly5UaEivUPzPSZ0UfA97iElY0Y0NlIGECc9ZN0t tuBNQ/qfcR8ZtXoFLTDC5XKPbdIjRpu8IqS5SAGZgTCz1BzsbhLpsLBGKFtHqrZGjIe3 7eZRLjsKxwJQIV8/efj0mwcv0SPQCAMowRCCCOEEr1fJYVZ5R4/IYclNNsztHk8/9VQ4 xLjA==
X-Gm-Message-State: AKwxytccO9OhOyVmCjbnM4UVKaHfrbVwemDbLaHy8xYFnADbfLJ+Ob+R jisoez2DDk2PWfXswjlTiOKglVKsLYpsne5wBVk=
X-Google-Smtp-Source: AH8x225zCrhOla37U7kYsHo+ltvvaGf541KCqYS30Ng4G10Rh66HO7HndphgsWNWoFiRkDDsLQmQuzE4cnGbZ0uwyk8=
X-Received: by 10.157.45.169 with SMTP id g38mr3670467otb.149.1516587933153; Sun, 21 Jan 2018 18:25:33 -0800 (PST)
MIME-Version: 1.0
Sender: hallam@gmail.com
Received: by 10.157.37.125 with HTTP; Sun, 21 Jan 2018 18:25:31 -0800 (PST)
In-Reply-To: <CAChr6SyeBCh-FEzk+zdRW9NGz-ZvNXogJ+KEKnoco+U_RwELbg@mail.gmail.com>
References: <CANp5f1OzPukQ9T69kDaVVTXs0DYdXzY+n=AN6iVRgKKHR4S9CA@mail.gmail.com> <1ECAA6AB-6A96-4E45-AB5C-22F53673FBE1@vpnc.org> <CANp5f1MmExKf1JGwTFPZcnVOSRVMYFTwsxPDHXgs9hERXsUu1g@mail.gmail.com> <CAChr6SyeBCh-FEzk+zdRW9NGz-ZvNXogJ+KEKnoco+U_RwELbg@mail.gmail.com>
From: Phillip Hallam-Baker <ietf@hallambaker.com>
Date: Sun, 21 Jan 2018 21:25:31 -0500
X-Google-Sender-Auth: W2PqJrZ8Bn1MDNF0kbTlwvTAgoE
Message-ID: <CAMm+Lwgt4rHvC8wPHvSigV+fNTURbZKBmEN2aBCvd55DiHBE1A@mail.gmail.com>
To: Rob Sayre <sayrer@gmail.com>
Cc: Henry Andrews <henry@cloudflare.com>, Paul Hoffman <paul.hoffman@vpnc.org>, JSON WG <json@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c0321fa06be4d05635425fe"
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/uwAdA5i49ITIL6GuWePqRaOIGhI>
Subject: Re: [Json] JSON Schema
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.22
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: Mon, 22 Jan 2018 02:25:36 -0000
+1 I have been designing protocols for 25 years and I have never come across a requirement to specify a minimum number of items in a set that is other than 0 or 1 and never come across a reason to specify a maximum other than 1 or infinity. When I have come across other limits, I have pretty much always found them to be wrong. Take the requirement to have two authoritative servers for a DNS zone (not enforced by the protocol but enforced by the social infrastructure around it). That seemed such a good idea to me till I found the two authoritative servers for the MIT LCS/AI running on a couple of sparc stations plugged into the same wall socket. The less twiddles and curlicues, the better. Validation is not useful for a data schema. It is useful for a document schema because it allows an intelligent editor to tell the user if they are filling in what really amounts to a form correctly. My other objection is to the use of JSON syntax and the limitation to JSON encoding. I don't see a reason to limit scope to one encoding. I write my systems using a schema language that is at least in principle capable of targeting ASN.1 and XML as well as JSON. This approach only allows me a subset of the capabilities of ASN.1 and XML schema which is exactly the point. On Sun, Jan 21, 2018 at 5:21 PM, Rob Sayre <sayrer@gmail.com> wrote: > Hi all. > > There are much more efficient and unambiguous formats available if there's > a schema at hand. > > thanks, > Rob > > > On Sun, Jan 21, 2018 at 2:11 PM, Henry Andrews <henry@cloudflare.com> > wrote: > >> The full set of current documents is on the web page: >> >> http://json-schema.org/specification.html >> >> The first set of links (in the table) go to locally hosted renderings of >> each document. >> Beneath that, there are links to the IETF-hosted documents. >> >> If you want to see why the numbering is so incredibly confusing, there's >> a "Specification LInks" page linked under "Older Drafts" >> >> -henry >> >> >> On Sat, Jan 20, 2018 at 2:59 PM, Paul Hoffman <paul.hoffman@vpnc.org> >> wrote: >> >>> On 20 Jan 2018, at 13:25, Henry Andrews wrote: >>> >>> Hi folks, >>>> I'm one of the JSON Schema draft editors, and it's been brought to our >>>> attention that the JSON Schema project may fit within this working group >>>> (or a successor? I'm a little confused as to the current status and >>>> scope >>>> of this group). >>>> >>> >>> The WG is closed and thus has no charter. If you want an IETF WG for >>> JSON Schema, it would need to be a new WG. The new WG could be chartered >>> just to work on JSON Schema, and not every other JSON-y idea that comes by. >>> >>> The current draft is draft-07 (although the actual IETF numbering is >>>> complicated). So draft-02 was a very long time ago :-) >>>> >>> >>> Could you point to the actual documents you are talking about? I see >>> draft-handrews-json-schema-00, which is not at -07, >>> >>> --Paul Hoffman >>> >> >> >> >> -- >> >> - >> >> *Henry Andrews* | Systems Engineer >> henry@cloudflare.com >> <https://www.cloudflare.com/> >> >> 1 888 99 FLARE | www.cloudflare.com >> - >> >> >> _______________________________________________ >> json mailing list >> json@ietf.org >> https://www.ietf.org/mailman/listinfo/json >> >> > > _______________________________________________ > json mailing list > json@ietf.org > https://www.ietf.org/mailman/listinfo/json > >
- [Json] JSON Schema Henry Andrews
- Re: [Json] JSON Schema Tim Bray
- Re: [Json] JSON Schema Henry Andrews
- Re: [Json] JSON Schema Paul Hoffman
- Re: [Json] JSON Schema Henry Andrews
- Re: [Json] JSON Schema Rob Sayre
- Re: [Json] JSON Schema Henry Andrews
- Re: [Json] JSON Schema Phillip Hallam-Baker
- Re: [Json] JSON Schema Henry Andrews
- Re: [Json] JSON Schema Henry Andrews
- Re: [Json] JSON Schema Paul Hoffman
- Re: [Json] JSON Schema Henry Andrews
- Re: [Json] JSON Schema Henry Andrews