[Json] Re: YAML schema text isn’t superset of JSON schema
John Carlson <yottzumm@gmail.com> Wed, 20 May 2026 18:37 UTC
Return-Path: <yottzumm@gmail.com>
X-Original-To: json@mail2.ietf.org
Delivered-To: json@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 44F6DF1C9AFC for <json@mail2.ietf.org>; Wed, 20 May 2026 11:37:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1779302252; bh=e2cZMPSLhMydtCCvDpNvjIQ3dOcjARFjU9GcadY/leE=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=Ksc70LcyuiISOfQaKvjDkYiIq2HBAsRaeYH8c04X7XwVY/yI5g8r887sViRir8CD+ A09gviOxc/yvNz/qGSGGCDPxzaHGAargVg43hscE0mYOjFr3ru1Dp/skxBpsJ2ZsAd l5GS3s7IrvHUFCpnjsvv18ixS76yk4iVf3TSRnMk=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U9tEHZb325VP for <json@mail2.ietf.org>; Wed, 20 May 2026 11:37:25 -0700 (PDT)
Received: from mail-dy1-x132d.google.com (mail-dy1-x132d.google.com [IPv6:2607:f8b0:4864:20::132d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 6DAE7F1C954D for <json@ietf.org>; Wed, 20 May 2026 11:37:06 -0700 (PDT)
Received: by mail-dy1-x132d.google.com with SMTP id 5a478bee46e88-303dbfbec77so5396622eec.0 for <json@ietf.org>; Wed, 20 May 2026 11:37:06 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1779302220; cv=none; d=google.com; s=arc-20240605; b=XDRzZKyARV8Y08r9h8C9AuL5UCyEZgFyKl7jJWXaoHnoGV7ukyyGU0sQ04+ABs3RP2 GZOchdE00WVqDVDjVCBT7GvWHlyLkDsYN/r+kh5k1oPyQRtORDiteEv9TqoiMtYEEA5d KssxY4Fxfi62pLNIY5t4G32KQdv34LKkrrG44rO7gQhCnTPa3CJU6dtL4FRSYn5PDYu8 N5vxhPBoVMMvDW1OKCvqBoGvu+mVj0SxifYDZjIVyzuic3A/4S0pVaRt1HLOyMtDBaVG 7YIiJnpgVe7gxMjyGhT6KFbwOZ37ld9l80Cor+a9AaxbL0vdigUwwQ5SK/yYSa1RVnkj hA6w==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=4ZOS1O17ddQ/dMTNj5skGBIrE2NMdE/ArBR4e2vzfXM=; fh=unFcSg8skozyJUI+HWlXapX8artAGkG+CsOWVyHv4e4=; b=QvJrbiyk6dzJoOlLdy4FUyspO5adNONLWzwEkZKr/Mddcp+vBKZU1Oq4sQMdIn66MB sluNd+upUXGikW+AjkY6MNV6rH5KbwhPRYVdZElEi8xM/fZtYLFeMeFXGyXx8FpOTaIs rVYCJZCuPHOexnt2s9vz5G202yvqLjJL+lwMNy/4tBBrPooGVA362X5esbbHDbOwC/ku Wq8KSq94tn3MHZhZlRbtrv6jU0CDKaAy4tylRt+zaUYe/U48hunjr4yd6Y6am4IOVjI7 ChasR7Y/U+iDd6i8m/HDri09wqd6ioyTjvn41AZjq9n9Nr+ecZNWS93jCjlH8IxVFXlZ YF0w==; darn=ietf.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779302220; x=1779907020; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4ZOS1O17ddQ/dMTNj5skGBIrE2NMdE/ArBR4e2vzfXM=; b=kfNuFPGWB6OILy3V6+38nanAXcgCSPnvzuKBhaUWMqwzwX2BgR2+5YNeSDJC2EGoTk arPRAEZ4ZM4BNzPVJapgENBVoik22x2N8vxV0C4ZFeb0SlkHhcmE75dOYeDUiMF4KkYw NvBHUkJD7MsutepvQCsPsnj5SOQ4lOWxV1T+Fz7Jnb1WmEXcfVysdg02hluZqy9XU97o m7y8ewv2YRoMU+PuqYjEG8HkGtReAHdXyYoTdLSk2yN9hpl0LSgZUiPntb6fMA5atBm1 0T0jCHYjI5NafHagXA0CZFb3BoJ5jqT1hmbOUjIHfwm1vOZ5Zob+QFN5m6fMFlVgSjU5 IpTQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779302220; x=1779907020; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4ZOS1O17ddQ/dMTNj5skGBIrE2NMdE/ArBR4e2vzfXM=; b=dmWkrWSCCx0XAZoQSHmSO526SaEa+nmp9Rs1BLDKl/7Lj8B1dQG45wM0OaKLyJlF2w a+k0NjtDu0naFj0nyAzA67ScradlBZI75/9qZ+vQ6AgkKV+i8i1uRHsbemRiEECqQQyn BZae5GssnCjnKKSWUfNB9z6Uz2Im0ZdJUfDFt7uaxrpMBQELDVVv9iwtCCX8I2lQwOt+ BZZxu+B2Jo1NGVsBhz55XA9u4sT4yqBXtDs4PiSdJurrYqyHaKksnaW+tk754jPLFIUD J8fjflhyFpl94E2Adt+2WRKNpemF+cU/HHz34jc7f+oRL0kbxn3EmfS+hEmPl6jW8MW/ Fm+A==
X-Gm-Message-State: AOJu0Yy8g+8gIe8Vja/4QjLkXvLqbxD/q9yF8wMQfJwNk5MqMUngtXx6 jOVNuQ3OBetxbHxMyPcg5jdObHk6mYDQh1UAwqznok5zUwzydQhjYp4TNP/suMaPfzZs0F0figM 143MA+QM1SjySOnIm8BF6J0OCR3x2eylEXGhT
X-Gm-Gg: Acq92OFgwqgtvLDybMQ5VCKnDyVMx6OZiPN1AZBsx9wizKvOE+TbCGCK1eZSiAA2XqN /HyVz96RY25oeKV8gSG0M2MOYXmI0bBZbOd3orH3j//NSGa5NfjCVtmFAt7GSzzrsdPV6jfpHRR gwb/8MUVQMFuNAC9D3QKHWtMI1nOD3NVC772ys8wpmuYa2VG+R06+LBeaQtNVT0iCQgLtg7P+jA JfUPsHZLvtwv67mnCYNhwSBznW763JbXmih7A8/1gKY2kiOfO/MWS6svgaEDNcJblgMYFlQGSXj Q3hEKUGxfI7Xvg25JnRFRnV52t2emvqfxegVGiaIWmWRy8/IiwkVE9/N+OS3q0gXlFZTlZC+Fs/ Cc1HivKfVPATXTuf2f/Hx7Ow5j9Btbas=
X-Received: by 2002:a05:7300:6c05:b0:2d8:df01:d9f6 with SMTP id 5a478bee46e88-3039864d5c1mr11087809eec.23.1779302219535; Wed, 20 May 2026 11:36:59 -0700 (PDT)
MIME-Version: 1.0
References: <CAGC3UE=xjHpspGC_sD=t6SHcRRLqSS0oC-OWR8CLjTba9hMhNg@mail.gmail.com> <CAGC3UE=y+6V-dHazJoG25JKPQ4AJQNJmtn1MrpF+G8TR_cEvUQ@mail.gmail.com> <CAPJsHfBoWQKoBciTu8uWXB_rY45BaZOO4os_zoX3BAdZKZVAig@mail.gmail.com>
In-Reply-To: <CAPJsHfBoWQKoBciTu8uWXB_rY45BaZOO4os_zoX3BAdZKZVAig@mail.gmail.com>
From: John Carlson <yottzumm@gmail.com>
Date: Wed, 20 May 2026 13:36:47 -0500
X-Gm-Features: AVHnY4K0zuSOptn0EN9u0SryotkmLp4XQ36IDq2M7Aqv7RKE9BJ5JAPT3QSEnpw
Message-ID: <CAGC3UEkyHrD+BDxvTfedYGKP5iE-EGsvdcHmML934Qk5xz0VOQ@mail.gmail.com>
To: Karen Etheridge <karen@froods.org>
Content-Type: multipart/alternative; boundary="000000000000be5a3e0652441410"
Message-ID-Hash: A3XTODG7SX46QAMV3FONKAB5GMDFK5EO
X-Message-ID-Hash: A3XTODG7SX46QAMV3FONKAB5GMDFK5EO
X-MailFrom: yottzumm@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-json.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "json@ietf.org" <json@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Json] Re: YAML schema text isn’t superset of JSON schema
List-Id: "JavaScript Object Notation (JSON) WG mailing list" <json.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/json/XmKrAq0896XGIPRkr470pYwuBn0>
List-Archive: <https://mailarchive.ietf.org/arch/browse/json>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Owner: <mailto:json-owner@ietf.org>
List-Post: <mailto:json@ietf.org>
List-Subscribe: <mailto:json-join@ietf.org>
List-Unsubscribe: <mailto:json-leave@ietf.org>
I get that JSON Schema can help validate YAML documents. I was considering using YAML schema before my brain farted about leading dashes in YAML, so I did some hunting. I filed an issue with the YAML schema site. John On Wed, May 20, 2026 at 1:21 PM Karen Etheridge <karen@froods.org> wrote: > Feel free to send a PR, but it has nothing to do with us. > > On Wed, May 20, 2026 at 11:16 AM John Carlson <yottzumm@gmail.com> wrote: > >> Perhaps the regular expression should be updated? >> >> >> https://stackoverflow.com/questions/19109912/do-i-need-quotes-for-strings-in-yaml >> >> >> Thanks, >> >> John >> >> On Wed, May 20, 2026 at 12:53 PM John Carlson <yottzumm@gmail.com> wrote: >> >>> *I found a disconcerting example of YAML schema here:* >>> >>> *https://yaml-schema.net/features/types.html >>> <https://yaml-schema.net/features/types.html>* >>> >>> >>> *Invalid examples:* >>> >>> -001 invalid: "value" >>> >>> *Error:* [1:1] .: Property name '-001 invalid' does not match pattern >>> '^[A-Za-z_][A-Za-z0-9_]*$' >>> >>> >>> Many of our property names start with @, # and -, so they wouldn’t match >>> the regular expression above. So YAML schema isn’t a superset of JSON >>> schema, it’s another beast entirely. >>> >>> Thanks, >>> >>> John >>> >> _______________________________________________ >> json mailing list -- json@ietf.org >> To unsubscribe send an email to json-leave@ietf.org >> >
- [Json] YAML schema text isn’t superset of JSON sc… John Carlson
- [Json] Re: YAML schema text isn’t superset of JSO… Karen Etheridge
- [Json] Re: YAML schema text isn’t superset of JSO… Karen Etheridge
- [Json] Re: YAML schema text isn’t superset of JSO… John Carlson
- [Json] Re: YAML schema text isn’t superset of JSO… John Carlson