[Txauth] JSON Schema?

Dick Hardt <dick.hardt@gmail.com> Mon, 06 July 2020 19:01 UTC

Return-Path: <dick.hardt@gmail.com>
X-Original-To: txauth@ietfa.amsl.com
Delivered-To: txauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 043B83A0A51 for <txauth@ietfa.amsl.com>; Mon, 6 Jul 2020 12:01:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, 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 EmFysIziPZO2 for <txauth@ietfa.amsl.com>; Mon, 6 Jul 2020 12:01:32 -0700 (PDT)
Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (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 76C473A0A65 for <txauth@ietf.org>; Mon, 6 Jul 2020 12:01:30 -0700 (PDT)
Received: by mail-lf1-x130.google.com with SMTP id t9so23225700lfl.5 for <txauth@ietf.org>; Mon, 06 Jul 2020 12:01:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=aBhqmuJnQDiSEGCXa8qREvv4SivWTjoBoomrrXjNnt4=; b=r88odOou6hPAAW7NXmfDUkXRhNrpQl2osKc0wrBag9qsjEuN8myulgn670d/fj0Xzh m2ok3GRRRgW6K14STS/PNZmAA7zEFW7nxU1zO2zMWQNgjqAK0CuImeZbnVhV2Fi52Vr1 MhTQMgnS2qBDZCClrAz64fKizydxkS6zDZfoRsYTuJL0jE05Yls1C8tdDFT2lJAqQjNZ xLnaSwS1uxkru9dwqH/PMj6hI9m4DirLcTntP9+6Z4TGh8s47qPEgc2eLZmRLdpxpSRL fZm/u2VLavcyye8TEz+iXWBDoO8b35ziyX5R01ebPolQguP5i5l2ihPyWrRVXt8j6Fwz f1pQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=aBhqmuJnQDiSEGCXa8qREvv4SivWTjoBoomrrXjNnt4=; b=CKJtj1X3nRDidQICEJgAqL/9hFinlQEHI7//5oaj9Vkm1jNK3NH7y8uAk+1DZlZmwr ZyInihWfw98sCioK/kTrK12gYJFfzqW1ONTZwK2WDNzEvCGp1bIgw40MIcB1o5eRTQX9 F0JHU+QjOyTiPcy1tKK4u6eEMU5fJ4Tr6p+fmmEgp2AnJmr8cGhK5WLyCDLtpdwlFHHu cRe/6EMtN74uM0an2fMNLNPS0jQEguVpfDxg0NtZkPjLGwVFk8TDzFBcC4cuQEaXEPRM 8jWS3NuP+gJ9SpJinUcqVe/U/WGAyMby61K5ZvnqW8EDFwpLxoaRtl5kxL33NTws3doj 1Y3Q==
X-Gm-Message-State: AOAM531Xgng/TNEf/9eGmsYehMKp6MvwC/nBaul1gDd7G44iEIqStBIu bo1uNYUcXiaDAQlGuWzM1+CZvFT7I82nYI1HZmvbszMy3f0=
X-Google-Smtp-Source: ABdhPJwxQkvcLI4tuBMJ3hz+gwZshc5bucuQcodELwAiRAP25q8eNOQRjOOGo2scOBMCupYBS7CDiK4F+WMimcpxW1Y=
X-Received: by 2002:ac2:518c:: with SMTP id u12mr30749968lfi.91.1594062088151; Mon, 06 Jul 2020 12:01:28 -0700 (PDT)
MIME-Version: 1.0
From: Dick Hardt <dick.hardt@gmail.com>
Date: Mon, 06 Jul 2020 12:00:51 -0700
Message-ID: <CAD9ie-vnA98pobbboS00SAHneEG52_8eMxh_sE3r3jg6gyooGg@mail.gmail.com>
To: txauth@ietf.org
Content-Type: multipart/alternative; boundary="00000000000083a5a405a9ca8039"
Archived-At: <https://mailarchive.ietf.org/arch/msg/txauth/FcXuP6ugUvYZHzmSj8y2F59Gci0>
Subject: [Txauth] JSON Schema?
X-BeenThere: txauth@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <txauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/txauth>, <mailto:txauth-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/txauth/>
List-Post: <mailto:txauth@ietf.org>
List-Help: <mailto:txauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/txauth>, <mailto:txauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 06 Jul 2020 19:01:41 -0000

Hey

Does anyone have experience and/or opinions on JSON Schema [1]?

When implementing XAuth [2], I wrote a bunch of hand crafted JSON
validation code. JSON schema looks like it could be a great way to validate
input, and to create automated tests for output. It may also be a great way
to document the Grant Response JSON.

/ Dick

[1] https://json-schema.org/
[2] https://github.com/dickhardt/XAuth-poc