Re: [Json] JSON Schema Language is nearly done: int53

John Cowan <cowan@ccil.org> Thu, 01 August 2019 16:09 UTC

Return-Path: <cowan@ccil.org>
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 D4653120247 for <json@ietfa.amsl.com>; Thu, 1 Aug 2019 09:09:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.102
X-Spam-Level: ***
X-Spam-Status: No, score=3.102 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, GB_SUMOF=5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ccil-org.20150623.gappssmtp.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 VFAZg7K3uyaK for <json@ietfa.amsl.com>; Thu, 1 Aug 2019 09:09:06 -0700 (PDT)
Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 D17771201DA for <json@ietf.org>; Thu, 1 Aug 2019 09:09:05 -0700 (PDT)
Received: by mail-wm1-x32d.google.com with SMTP id g67so59604750wme.1 for <json@ietf.org>; Thu, 01 Aug 2019 09:09:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccil-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bZhITEQ7iL1fnt4CQHHiKRHaeIXUKJKd/TO9ErkUGJI=; b=ZpXCFxlXmrXohnT0aQKPDhmyT5fz1XvJ099kl05tj+s3UUjmQm+gi1YGpz4G8/jeqM 9l9EMr+zuUH4zbcE4sL98jv996meDu0u5zAJKybQjEU4Vh+JZbJm/cacOlnhMZh4OZ+d rTtKAxfOpHJUqPTrbicDuXgJzdcxdP9uwbZu1Rvm/FdM/wN+sqhxe4XxlVe6IMRhE/Va vaM5adxCrFgP02Rhe1uVZbEyRy3qKwRe15IdC4mXaj228nQaA8ZmCxSrlA8IWTjxTPlx ozFhYdAp37B4ASsMYb5q21ZX9BN+lG743HoGhk+LgrIgAnHKVLNk9Lzo4XhA1R++2cjz 6K4Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bZhITEQ7iL1fnt4CQHHiKRHaeIXUKJKd/TO9ErkUGJI=; b=Orw4H6tmT4UJASJmaWE+6MJ+aGS1msNbxDj3bA2jaZb9T6MT8he18v4r1oqg8mzUgJ 4xkCzo6t/B5kPq/iOYQAxW1DKO1nrtf+X4Mfj6DTgdxaXpc79lH+9llSRZdH6iyzjPH6 S3BGntSA/DJ8g0tkGiyTDaG/HIWlcLsaRvTtrc9EESLel4zLTt/SJypLAGDoXyPT2Br5 M2BIHx+4QzspPwqk233ikkKqdI7Wb1oKMkjapmnPc4W6CY1BLauazzT5Zal+2O/EELaV 3cKT7F62PydfYmtR4My6LKxbn2qMYH/1EWWyAmnmw/yxjBldlf+tm0kLC+QOk75CB8Df dQkg==
X-Gm-Message-State: APjAAAXiERVNdUKicQwWPiWWtVdWHqx7IjY0nq7o0AZlaBUTWatDZW8C Rhkqi1OD6Raj2MbTJ/BiqCW4JG9foFt0RbowNblmHw==
X-Google-Smtp-Source: APXvYqxMQpQG0EoKgcZmQUttnKlV8K3bhJEqwnNbDTbqjnqrsDY5RFP/QbkoNVbjyWDZh/TZCKoTlQOAe+4DubbvDQU=
X-Received: by 2002:a1c:9cd1:: with SMTP id f200mr114226257wme.157.1564675744275; Thu, 01 Aug 2019 09:09:04 -0700 (PDT)
MIME-Version: 1.0
References: <SY2PR01MB27642C6983E387C397B11581E5DD0@SY2PR01MB2764.ausprd01.prod.outlook.com> <CAJK=1RjhuCYJe4-BSB++8+-dHG3LV8TdqsnFEPAoAkfJ1mOE3A@mail.gmail.com> <SY2PR01MB2764AD4523625006B1F3DFEBE5DC0@SY2PR01MB2764.ausprd01.prod.outlook.com> <aeb4dfcc-4227-2d8e-d1dc-914d078450fe@gmail.com> <SY2PR01MB2764600E16BA7A19025964EFE5DF0@SY2PR01MB2764.ausprd01.prod.outlook.com> <7f663d84-eb38-271f-12c3-a0f4a2261090@gmail.com> <CAJK=1RjqqtZvdWBJNXR6ebKFT1KSkNJHQjiydQ7RJX6aPyB+9g@mail.gmail.com>
In-Reply-To: <CAJK=1RjqqtZvdWBJNXR6ebKFT1KSkNJHQjiydQ7RJX6aPyB+9g@mail.gmail.com>
From: John Cowan <cowan@ccil.org>
Date: Thu, 01 Aug 2019 12:08:53 -0400
Message-ID: <CAD2gp_QWcVVbnmuZfuqawR1fW7=iVgtuD1tKWVQ=ME3gjDORvQ@mail.gmail.com>
To: Ulysse Carion <ulysse@segment.com>
Cc: Anders Rundgren <anders.rundgren.net@gmail.com>, "Manger, James" <James.H.Manger@team.telstra.com>, JSON WG <json@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000ed3427058f10752b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/0kMNHZXBEZdMZiiHoVFqbIG1RE8>
Subject: Re: [Json] JSON Schema Language is nearly done: int53
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 01 Aug 2019 16:09:14 -0000

On Wed, Jul 31, 2019 at 11:55 PM Ulysse Carion <ulysse@segment.com> wrote:

The same goes for monetary data types. There are too many options, and it's
> better for the spec to stick to relatively uncontroversial things.
>

Monetary amounts need to be represented as JSON strings, or your auditors
will be down on you like a ton of bricks.  The sum of ten 0.1 values
is 0.9999999999999999, not 1.0, assuming the float64 interpretation that
essentially all JSON readers assign to JSON numbers.


John Cowan          http://vrici.lojban.org/~cowan        cowan@ccil.org
If you have ever wondered if you are in hell, it has been said, then
you are on a well-traveled road of spiritual inquiry.  If you are
absolutely sure you are in hell, however, then you must be on the Cross
Bronx Expressway.  --Alan Feuer, New York Times, 2002-09-20