Re: [Json] JSON Schema Language

Anders Rundgren <anders.rundgren.net@gmail.com> Mon, 06 May 2019 07:17 UTC

Return-Path: <anders.rundgren.net@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 4A65C1200D5 for <json@ietfa.amsl.com>; Mon, 6 May 2019 00:17:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=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 nLaXmmIKVmIy for <json@ietfa.amsl.com>; Mon, 6 May 2019 00:17:10 -0700 (PDT)
Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 462D0120046 for <json@ietf.org>; Mon, 6 May 2019 00:17:10 -0700 (PDT)
Received: by mail-wr1-x42a.google.com with SMTP id c12so15821311wrt.8 for <json@ietf.org>; Mon, 06 May 2019 00:17:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=RLJ7HQvnHrmjJL15019pgOmKOGdjsmu6pqaHkYyusTU=; b=KDjdnxahEnJB8MJi3/qURmf9BRd26ihYPc0tR56NUMGby3LqKwYL8xRZicsWdW3yPW 8xPwqH4wKGTIEAHhQMppdcg8l4an640AS7FBSPbQb6wx0jimMUD8YWlQt3Uz8aRZ2F5T S2tjJWArxqwycDAD2k/rXZCRMYqtPaYXXLLuBtK99Ta+dwnmvB094VOVQ14dHH7DiRnH DODogQaJrgXGkACAhjpI8qcQRQ0eNHzkTUHapZ8q2qluAKGi23TCteqW9Tf3SgnO7C8Q 3Qx2f6HHvbA+qAwkOJmVdyplYc77kz6MLmVAR0gVKU8HjtlIZjyLYeaMnWMIOnEEdxxw kXWg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=RLJ7HQvnHrmjJL15019pgOmKOGdjsmu6pqaHkYyusTU=; b=Mze/ZV8Mt2J0eHcOK0gW0OFYedQlNRa4tmPMb580iBASyjYrhhn5tINkEAHcqn2qKt jI3cddKmPSSQVBd+tAOPB+pI58whKedh31G8rJPOfPPIpdocZThUxcL6R6/eoG3UhctI aldQTbU3H4XCj3Lx4gFYKolMZUAmFM68+AKiyK8Ge375QQW0os5bNf2ui9Q8gUuukMY2 d9zC/ZSHaLMgxqMIz+PYoWfpEG0F3WEUDqisd0cyz8Ceo5IIAxMmkNu1WYy9KfK8dH41 vmlFz3NDAQKaJPjBcAygAkIW8kuT/gyiQK/CsuJZLDORzaxX+RwtcEf6oJeLoJEuunRm a70g==
X-Gm-Message-State: APjAAAXwDihPpH6+XzIowwm0QsC3zhk6zvucn2EqMvSpPf3r2SXYezRb NNJWjnpdall4c99jVs7jBo0nsWkm9tE=
X-Google-Smtp-Source: APXvYqzP6MM/e/Myv0Md8Jn0RFcHgWHBcxFJSKiGDkkP6yFIiO7PUmdgb5GN7/sq3fkijqSTCSlVNA==
X-Received: by 2002:a5d:4712:: with SMTP id y18mr16098327wrq.23.1557127028745; Mon, 06 May 2019 00:17:08 -0700 (PDT)
Received: from [192.168.1.79] (25.131.146.77.rev.sfr.net. [77.146.131.25]) by smtp.googlemail.com with ESMTPSA id 19sm2017966wmf.44.2019.05.06.00.17.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 May 2019 00:17:07 -0700 (PDT)
To: Carsten Bormann <cabo@tzi.org>
Cc: json@ietf.org, Austin Wright <aaa@bzfx.net>
References: <CAJK=1RjV1uv0eOdtFZ8cKn-FfCwCiGP5r2hOz1UamiM6YV4H1A@mail.gmail.com> <39682ec8-f993-a44c-d3e2-1638d2c1608f@gmail.com> <20190505053921.GA21049@localhost> <ac285e33-0ddc-3b96-fb50-de9b65f40c0e@gmail.com> <20190505070023.GB21049@localhost> <56070772-de6f-2553-94c0-df75c08b4c80@gmail.com> <20190505163626.GC21049@localhost> <CAD2gp_TZYYBTnfd3v6mW2DxjEZxA9nZ-tve_18Gi86gTx8ZcxQ@mail.gmail.com> <11a605da-0181-a3db-d6f0-e71eb1c1db61@gmail.com> <374C55B5-BDE6-41FD-AAD7-504FB18FDA8A@tzi.org>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <f441bcad-b3b8-a3de-d582-ece5a141d0f8@gmail.com>
Date: Mon, 06 May 2019 09:17:04 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
MIME-Version: 1.0
In-Reply-To: <374C55B5-BDE6-41FD-AAD7-504FB18FDA8A@tzi.org>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/he9iCoYyaWVFBrspbSj3qupkxoQ>
Subject: Re: [Json] JSON Schema Language
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: Mon, 06 May 2019 07:17:12 -0000

All I'm saying is that

    https://tools.ietf.org/html/draft-handrews-json-schema-01

doesn't support alternative number serialization schemes like featured in:

    https://tools.ietf.org/html/rfc7518#section-6.3.1

It also doesn't deal with common numeric data types like ubyte, int32, uint64, float, double, BigInt etc. etc.

XML Schema shows that there is no problem having such definitions in a schema.

I leave it at there: https://github.com/json-schema-org/json-schema-spec/issues/736

Anders


On 2019-05-06 09:00, Carsten Bormann wrote:
> On May 6, 2019, at 08:33, Anders Rundgren <anders.rundgren.net@gmail.com> wrote:
>>
>> IETF standards like RFC7515) have since years back rather turned to a JSON subset sometimes referred to as I-JSON (RFC 7493).
> 
> I cannot find a reference to RFC 7493 in RFC 7515 (part of JOSE).
> JOSE does not care, because it signs representations (byte strings), not data model level information.
> 
> (JOSE does need ways to represent cryptographic information that may contain numbers that might exceed implementation limits of JSON decoders.  So it represents them as text strings containing BASE64URL(*) encoded byte strings representing big-endian unsigned integers.  That has nothing to do with I-JSON, or actually only with its [incomplete(**)] suggestion to use base64url encoding for byte strings.  Section 2.2 of RFC 7493 does NOT say how to “encode [numbers] in JSON string values”.)
> 
> Grüße, Carsten
> 
> (*) Where BASE64URL is defined as base64url without padding.
> (**) RFC 7493 fails to specify encoding without padding, which, when read at face value, would mean WITH padding according to Section 5 of RFC 4648.
> Of course, we know that this isn’t what is meant.
>