W3C home > Mailing lists > Public > public-webauthn@w3.org > February 2017

CDDL tool

From: Hodges, Jeff <jeff.hodges@paypal.com>
Date: Mon, 13 Feb 2017 18:35:23 +0000
To: W3C WebAuthn WG <public-webauthn@w3.org>
Message-ID: <A52F256F-5588-4C31-B17F-B97ADB055312@paypal.com>

from https://tools.ietf.org/html/draft-greevenbosch-appsawg-cbor-cddl-09


Appendix F.  The CDDL tool

   A rough CDDL tool is available.  For CDDL specifications that do not
   use recursion, it can check the syntax, generate one or more
   instances (expressed in CBOR diagnostic notation or in pretty-printed
   JSON), and validate an existing instance against the specification:

                   Usage:
                   cddl spec.cddl generate [n]
                   cddl spec.cddl json-generate [n]
                   cddl spec.cddl validate instance.cbor
                   cddl spec.cddl validate instance.json

                        Figure 17: CDDL tool usage

   Install on a system with a modern Ruby via:

                             gem install cddl

                                 Figure 18

   The accompanying CBOR diagnostic tools (which are automatically
   installed by the above) are described in https://github.com/cabo/

   cbor-diag ; they can be used to convert between binary CBOR, a
   pretty-printed form of that, CBOR diagnostic notation, JSON, and
   YAML.





Received on Monday, 13 February 2017 18:35:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:58:33 UTC