Re: [Json] JSON Schema Language

Anders Rundgren <anders.rundgren.net@gmail.com> Sun, 05 May 2019 07:12 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 36884120021 for <json@ietfa.amsl.com>; Sun, 5 May 2019 00:12:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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] 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 vWEFUgiuOQZf for <json@ietfa.amsl.com>; Sun, 5 May 2019 00:12:12 -0700 (PDT)
Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) (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 7F88612000E for <json@ietf.org>; Sun, 5 May 2019 00:12:12 -0700 (PDT)
Received: by mail-wm1-x343.google.com with SMTP id o25so769597wmf.2 for <json@ietf.org>; Sun, 05 May 2019 00:12:12 -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=mcGes44c5EWzx9Uxix995RKS8k3KbES8aWhiVAUeRfU=; b=LJZsrPjvEoVQlGrEPigEVo68BwrfnuzOXArYlj8/GFuzVnBUIiglVZqSK/douMcJ3i jrTF7ZzmA4VY8ePotfnPbphUZ5OSZ0ePOuY5+TEp4ZerlD9HP0/dTPjbdN5sRI3YMJPY CdJEO8CeJbszh0PAFTgbBMQP/9oD+ikfX5kvYC8NivpDr8ZYgIGfwARYWKHw38m60cM4 LVbhbgan2baIN1qV4OycOX7QB+amqVRKux+eouIA09trNXBTaYcfXs2TMq3AsVrOi/b5 bm7K+y+faDvMo998ddNxMdOiHg0CIrIR0QutAQvwLj1Z7Ph7Lel0D4yH1U7zU/zC1Xzz geCA==
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=mcGes44c5EWzx9Uxix995RKS8k3KbES8aWhiVAUeRfU=; b=nNOM9CknSeMD6Mpd3P3I1OCxrMFjyLOIPrVxeEsA7Q0XLczZw9JAoW0NYHqNeoqojO juxrU7l+LIoOdKbbShp7LNbnzWYaP+4o1e4U68klQO4aJcvAlKjkyMJmy27V7YLm770P 2rSAk38tdbTg3SaHqkDqUja9OpGE+VwhlKlqqA8q1wsGV52KB6t8p54p9ND3/M7fPykW xbR705yzj6nL/wzCozrJpV8qEY4iZhQtxVGeKmN1INyaCV0GmfoMHZdJJ+HbpxsxYoU/ dMQYOLw4WXiI2XYX7neZdTzd9PL9yKVwid6DHxxKUx0mc2gQNkNbrMImgIH0+V47P0FO +O2w==
X-Gm-Message-State: APjAAAVJACC2NyWFxO/NoOPcpD0iVHY1pn6q/porM76lU3ITKtUajQN7 NmDjUZ7yGLSzd8i23MBdojVtRvvZWuI=
X-Google-Smtp-Source: APXvYqyaP2s07ciHk98tFeJwcZkrIxQpWWqcSc0AIlVjU3wJxDDIssFS3XZE09McBj9RhenHCS/Lfg==
X-Received: by 2002:a1c:c910:: with SMTP id f16mr11688667wmb.47.1557040330667; Sun, 05 May 2019 00:12:10 -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 c139sm11353981wmd.26.2019.05.05.00.12.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 May 2019 00:12:09 -0700 (PDT)
To: Nico Williams <nico@cryptonector.com>
Cc: Ulysse Carion <ulysse@segment.com>, json@ietf.org
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>
From: Anders Rundgren <anders.rundgren.net@gmail.com>
Message-ID: <56070772-de6f-2553-94c0-df75c08b4c80@gmail.com>
Date: Sun, 05 May 2019 09:12:05 +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: <20190505070023.GB21049@localhost>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/4smZoPA3A1F_trsoRWgdoEvVC5E>
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: Sun, 05 May 2019 07:12:14 -0000

On 2019-05-05 09:00, Nico Williams wrote:
> On Sun, May 05, 2019 at 07:52:18AM +0200, Anders Rundgren wrote:
>> On 2019-05-05 07:39, Nico Williams wrote:
>>> On Sat, May 04, 2019 at 06:47:35AM +0200, Anders Rundgren wrote:
>>>> On 2019-05-04 01:59, Ulysse Carion wrote:
>>>>> Hello all,
>>>>
>>>> Hello Ulysse,
>>>>
>>>> I'm a former user of XML Schema.   I was therefore looking for similarities
>>>> like data types and facets but didn't find them.
>>>>
>>>> Example: although 10.0 is a valid JSON Number, in system where you expect
>>>> an integer, this should be flagged as a syntax error.
>>>
>>> As a maintainer of one popular implementation, this idea that having a
>>> zero fractional part makes a number non-integer annoys me a great deal.
>>
>> As I described, this is incompatible with other popular
>> implementations like Jackson for C#.
> 
> That sounds like a bug in Jackson.

It also flags numbers that doesn't fit into the declared type.

Anders

> 
> Nico
>