Re: [Json] JSON "Number" interoperability issues

Henry Andrews <henry@cloudflare.com> Sun, 22 April 2018 18:21 UTC

Return-Path: <henry@cloudflare.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 02FF7120227 for <json@ietfa.amsl.com>; Sun, 22 Apr 2018 11:21:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level:
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cloudflare.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 g0x9tg8odpVH for <json@ietfa.amsl.com>; Sun, 22 Apr 2018 11:21:51 -0700 (PDT)
Received: from mail-wr0-x230.google.com (mail-wr0-x230.google.com [IPv6:2a00:1450:400c:c0c::230]) (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 ECFC8126D45 for <json@ietf.org>; Sun, 22 Apr 2018 11:21:49 -0700 (PDT)
Received: by mail-wr0-x230.google.com with SMTP id v60-v6so35222768wrc.7 for <json@ietf.org>; Sun, 22 Apr 2018 11:21:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=u+s+BUFsmm+Ru/0e1oGu1aAXkIAcB9SzTvtic0+HuU4=; b=QhUPs04jfIf54U/mU+kH7xxUC8K4ilTnkmYes8IylHg+JLyMl8Fk1jcl1MtdALVZlc 5cvnNU1O+XKx29q5Y4yDbqZRKYoNKgY7szWJnbhM/ZppoqFh9k4MkT5zvChCj9846Vnq LpJ5lJk0RLcuwJVWT/66Ism+8F/w7kzTu3b04=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=u+s+BUFsmm+Ru/0e1oGu1aAXkIAcB9SzTvtic0+HuU4=; b=UTBCB5NI4quLR/up7MDlWu8roJtp4UgpACqHKFEWeOncKxQYK+XMx0mVrz8K6iR9aG Un/1NZ9ishm3zY7eF1k7zqrRPdqlqRm7anFlEOf6Tao/os0WPrHEr1i2jp+CT3DRei3b TxRWE3naxlIMBFGP8C83YqqBTr9EmbZ4j0OKKQH2uBbkzCgKP6p2+9EEM32GQoqZ2Xq2 FCKDyroMBnpbGnWmd6GHbbTf3r0HTbNLwca6SIcZQFCq8dFoTD733Oihx4AaGvoKb0jQ sjCip/U73NNkk7LkM/y7plcaxSzhSX/zNOrPbmQ0XGOmmDMxdhAsHQe4jXv7OwvjKCmx mYMg==
X-Gm-Message-State: ALQs6tDhcfHqCaOvNANXt+ck7dcrAgCP3DUHsuQwAB+CACHp4cWeOtXZ ADoYi7EuNuEviE7SGc59cs1MqsBWXLIRK0HyL1kQ/A==
X-Google-Smtp-Source: AIpwx492YZNFS57EruTtddvMKCttL1tvjxN99H2lrcfUXMS++OpZ2wdeY2NrIIJPsq24vpR2rmoGjjDDKex/yJejrUQ=
X-Received: by 2002:adf:b71a:: with SMTP id l26-v6mr15343728wre.115.1524421308402; Sun, 22 Apr 2018 11:21:48 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.28.198.79 with HTTP; Sun, 22 Apr 2018 11:21:27 -0700 (PDT)
In-Reply-To: <d6d369bd-d823-2bc6-b4c1-5fb1d8c2ba18@gmail.com>
References: <0326c065-543c-bc78-8c18-d0d9c1d6e0c1@gmail.com> <CAHBU6itfQJgfnFximgQPbFDyt9gNfVTcZW+4b2hWCjCAokbb7g@mail.gmail.com> <CANp5f1PYeyoP1SwtCOaMexk4AcasA9vBtSk507NRVPnDHo0F8g@mail.gmail.com> <d6d369bd-d823-2bc6-b4c1-5fb1d8c2ba18@gmail.com>
From: Henry Andrews <henry@cloudflare.com>
Date: Sun, 22 Apr 2018 11:21:27 -0700
Message-ID: <CANp5f1Ntjam83tdVmtP+orizRhz_gZrQHYj6UswyC40QgCfymg@mail.gmail.com>
To: Anders Rundgren <anders.rundgren.net@gmail.com>
Cc: "json@ietf.org" <json@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000936889056a73fe98"
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/E_TrZUUGaY2zT9do5bTyrwMr-kk>
Subject: Re: [Json] JSON "Number" interoperability issues
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: Sun, 22 Apr 2018 18:21:54 -0000

JSON Schema provides tools to describe how people use JSON documents,
including imposing structural constraints.  While you could write a schema
describing the subset of JSON that you wish to use as your "standard", that
would be a *use* of JSON Schema, not *part* of JSON Schema.

Anders, you seem to want JSON Schema to prevent people from using things
that are technically allowed by the spec (as Carsten noted, "allowed" in
the sense that no one will stop you, not in the sense that any reasonable
person would expect a positive outcome).  That is not what JSON Schema, *as
a project*, is for.  You are more than welcome to use JSON Schema in your
own project to advocate for a more interoperable subset of JSON.

The section of JSON Schema's validation specification that you reference,
about the values for "format", has gotten some discussion around how to
manage larger extensibility question such as defining a registry.  The
issue for that discussion is
https://github.com/json-schema-org/json-schema-spec/issues/563

Furthermore, this email list is not the right forum for discussing changes
to JSON Schema.  This group has previously made it pretty clear that they
are at most interested in JSON Schema as one of many possible starting
points for a new effort, rather than developing JSON Schema itself into a
standards track RFC.  I have no objection to that- the IETF is welcome to
use or not use our work in whatever way makes sense.  I've never gotten
anything to RFC myself, and wouldn't presume to know all of the
considerations involved.  I'll be happy to support anyone who wants to use
any JSON Schema ideas in a new effort, but if we're talking about JSON
Schema as it is, that's better done through our repo or slack channel.

thanks,
-henry

henry@cloudflare.com
andrews_henry@yahoo.com


On Sun, Apr 22, 2018 at 3:27 AM, Anders Rundgren <
anders.rundgren.net@gmail.com> wrote:

> Since the JSON Number universe outside of IEEE-754 double precision has
> been left to application/platform developers to deal with [*], there are
> currently multiple incompatible (or incomplete) "standards" out there:
> https://github.com/OAI/OpenAPI-Specification/issues/845#
> issuecomment-378139730
> https://github.com/javaee/jsonb-spec/blob/master/spec/spec.pdf
>
> For .NET I haven't been able obtaining any public information on this
> topic, so I wrote some code in order to find out what it actually does.
>
> Maybe JSON Schema could serve a suitable place for defining a [potential]
> "real/de-facto" standard?
>
> To make such a process even smother, I could imagine moving
> http://json-schema.org/latest/json-schema-validation.html#rfc.section.7.3
> into a separate document but I haven't looked into the consequences of that.
>
> Anders
>
> *] https://www.ietf.org/mail-archive/web/json/current/msg04294.html
>



-- 

   -

   *Henry Andrews*  |  Systems Engineer
   henry@cloudflare.com
   <https://www.cloudflare.com/>

   1 888 99 FLARE  |  www.cloudflare.com
   -