Re: [httpapi] Discussion about JSON payloads and code generation

Asbjørn Ulsberg <asbjorn@ulsberg.no> Mon, 18 January 2021 10:17 UTC

Return-Path: <asbjorn@ulsberg.no>
X-Original-To: httpapi@ietfa.amsl.com
Delivered-To: httpapi@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 246233A1213 for <httpapi@ietfa.amsl.com>; Mon, 18 Jan 2021 02:17:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=ulsberg.no
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 TQJsoIeCS_Ia for <httpapi@ietfa.amsl.com>; Mon, 18 Jan 2021 02:17:01 -0800 (PST)
Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (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 75ECB3A1211 for <httpapi@ietf.org>; Mon, 18 Jan 2021 02:17:01 -0800 (PST)
Received: by mail-qt1-x829.google.com with SMTP id j26so10857768qtq.8 for <httpapi@ietf.org>; Mon, 18 Jan 2021 02:17:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ulsberg.no; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=FV3I5G3Fe7bba79N4VPthj86apXl6u026m4QVK1kJCg=; b=Cuy0YwgCd151hDW3II22S2BZKDrMUkSufJSuwvG7GKEnxLIgwxQ7SCQyyQWse8XhKo O2iTURgXz/9nQblP4Fjw1d3cBrZ2N6L//CjRIfD18N4CAM4gi0TdUrDG8pz0gF+xLH4R AjZ5zzG13OzRjxVwj+LRTfHunR9Zk3FcpD37413iiCnZLZxPIjRU12ZsXocyukHrmF0N 8nWhP8JyOqalr3YgfUJ2NuTowDZ/RmgdsQHkt4KayXeyfQiSwoWjSv8wLoOVmLhizxqq CObkrvWHn4kjKconOmkrK3d0UU5uRA3Bo3KK8iAl/51RoOapEYGtO977/nn+B+buJdlP IqRw==
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:content-transfer-encoding; bh=FV3I5G3Fe7bba79N4VPthj86apXl6u026m4QVK1kJCg=; b=t0RLNGQt6RvgaViWq+h6D85FoL3hbt+Ro6NPyoi1fzY4SraKPwR7mwc4aO9otx4jgj uS+UG0lQP+fji+3XUj9zEbiJPrWMGuZIvufWAtceq6HmSxaEXj8J0HB8SM2qlRfwPIGX EEKTCotCuoU3cKQXYYAD4RmAm6KhgGFa6oV9VNWi4s0L0i48ekRwraA7Ct6XX/YFv381 NYlZ5DoRt4m5A6CZHzQUO0oHCSs1iTTCodBpAGvDrL4BBlJZXCDXfcAvcIG/yv1mPOWm 7DdrXwNRYxAHxoyEyeXcjUxs2oMmCFLBNzXLtMu3h+URhZdMPScw1opFty2KRSrhtV+r 4OKg==
X-Gm-Message-State: AOAM531fYBwKYnWrlpOGtV2Hp9JFtLBn2ZMVUZWJ0tSWEaf5zstWOXOV eE7bhkoKnDD7KJtiOyGmDH0mDmPQypx620Dg
X-Google-Smtp-Source: ABdhPJzLrE4xzOpfVADrQILbStVvOhOJTF5N1tlJKdTZOPdFEBeciqpTCWMocBNikEY7lY34E5wohg==
X-Received: by 2002:ac8:7b56:: with SMTP id m22mr23162140qtu.380.1610965020148; Mon, 18 Jan 2021 02:17:00 -0800 (PST)
Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com. [209.85.219.178]) by smtp.gmail.com with ESMTPSA id g3sm10150037qtc.3.2021.01.18.02.16.59 for <httpapi@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Jan 2021 02:16:59 -0800 (PST)
Received: by mail-yb1-f178.google.com with SMTP id r32so2434615ybd.5 for <httpapi@ietf.org>; Mon, 18 Jan 2021 02:16:59 -0800 (PST)
X-Received: by 2002:a25:26cf:: with SMTP id m198mr35538275ybm.454.1610965019132; Mon, 18 Jan 2021 02:16:59 -0800 (PST)
MIME-Version: 1.0
References: <CALcRZn6-ojAAdJcMWFHef70Xp32O2iFatuw-YjGLKtr8VnbmYQ@mail.gmail.com> <DM6PR00MB0845824BE38945071F9774A5F0A69@DM6PR00MB0845.namprd00.prod.outlook.com> <CALcRZn6HdXE2WAn0vSod0XDY_yJd7jV7m5JnRWKWGDJaDaag-A@mail.gmail.com> <BL0PR00MB083637DAD075EC8E5342A0A9F0A59@BL0PR00MB0836.namprd00.prod.outlook.com>
In-Reply-To: <BL0PR00MB083637DAD075EC8E5342A0A9F0A59@BL0PR00MB0836.namprd00.prod.outlook.com>
From: Asbjørn Ulsberg <asbjorn@ulsberg.no>
Date: Mon, 18 Jan 2021 11:16:48 +0100
X-Gmail-Original-Message-ID: <CAEdRHi4q4d4RF1x8YJcJiWrMSij9FjK9pWjj7DMygqX38dZC1w@mail.gmail.com>
Message-ID: <CAEdRHi4q4d4RF1x8YJcJiWrMSij9FjK9pWjj7DMygqX38dZC1w@mail.gmail.com>
To: Darrel Miller <Darrel.Miller=40microsoft.com@dmarc.ietf.org>
Cc: "christoph.kappestein@gmail.com" <christoph.kappestein@gmail.com>, "httpapi@ietf.org" <httpapi@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/httpapi/egd4XB6CGR5A6ZYhclgs_0PUlsc>
Subject: Re: [httpapi] Discussion about JSON payloads and code generation
X-BeenThere: httpapi@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Building Blocks for HTTP APIs <httpapi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/httpapi>, <mailto:httpapi-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/httpapi/>
List-Post: <mailto:httpapi@ietf.org>
List-Help: <mailto:httpapi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/httpapi>, <mailto:httpapi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Jan 2021 10:17:04 -0000

søn. 17. jan. 2021 kl. 22:17 skrev Darrel Miller
<Darrel.Miller=40microsoft.com@dmarc.ietf.org>:

> In the spirit of "do one thing and do it well" we could have different
> specifications for specific use cases, which would be a much more flexible
> framework than forcing every schema to be a vocabulary. A generator could then
> support only specific schema types.

Ulysse Carion has already created a schema language specifically
tailored for code generation with RFC 8927.

https://www.rfc-editor.org/rfc/rfc8927.html

-- 
Asbjørn Ulsberg           -=|=-        asbjorn@ulsberg.no
«He's a loathsome offensive brute, yet I can't look away»