<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!-- generated by https://github.com/cabo/kramdown-rfc version 1.6.27 (Ruby 3.2.1) -->
<?rfc compact="yes"?>
<?rfc comments="yes"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-bormann-cbor-cddl-freezer-11" category="info" submissionType="IETF" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.16.0 -->
  <front>
    <title abbrev="CDDL feature freezer">A feature freezer for the Concise Data Definition Language (CDDL)</title>
    <seriesInfo name="Internet-Draft" value="draft-bormann-cbor-cddl-freezer-11"/>
    <author initials="C." surname="Bormann" fullname="Carsten Bormann">
      <organization>Universität Bremen TZI</organization>
      <address>
        <postal>
          <street>Postfach 330440</street>
          <city>Bremen</city>
          <code>D-28359</code>
          <country>Germany</country>
        </postal>
        <phone>+49-421-218-63921</phone>
        <email>cabo@tzi.org</email>
      </address>
    </author>
    <date year="2023" month="March" day="11"/>
    <keyword>CDDL evolution</keyword>
    <abstract>
      <t>In defining the Concise Data Definition Language (CDDL), some features
have turned up that would be nice to have.  In the interest of
completing this specification in a timely manner, the present document
was started to collect nice-to-have features that did not make it into the first RFC
for CDDL, RFC 8610, or the specifications exercising its extension points, such
as RFC 9165.</t>
      <t>Significant parts of this draft have now moved over to the CDDL 2.0
project, described in draft-bormann-cbor-cddl-2-draft.
The remaining items in this draft are not directly related to the CDDL
2.0 effort.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="intro">
      <name>Introduction</name>
      <t>In defining the Concise Data Definition Language (CDDL), some features
have turned up that would be nice to have.  In the interest of
completing this specification in a timely manner, the present document
was started to collect nice-to-have features that did not make it into the first RFC
for CDDL <xref target="RFC8610"/>, or the specifications exercising its extension points, such
as <xref target="RFC9165"/>.</t>
      <t>Significant parts of this draft have now moved over to <xref target="I-D.bormann-cbor-cddl-2-draft"/>, which in turn references <xref target="I-D.bormann-cbor-update-8610-grammar"/>, <xref target="I-D.bormann-cbor-cddl-more-control"/>, <xref target="I-D.bormann-cbor-cddl-modules"/>.
The remaining items in Sections <xref format="counter" target="lit"/> to <xref format="counter" target="controls"/> of this draft are not directly related to the CDDL
2.0 effort.
<xref target="co-occ"/> might turn into a part of CDDL 2.5.</t>
      <t>The remaining sections are not proposing to change CDDL, but are
ancillary developments:
<xref target="altrep"/> is more interesting for the ecosystem of tools around CDDL.
<xref target="alttarget"/> examines extending the area of application of CDDL beyond
CBOR and JSON.</t>
      <t>There is always a danger for a document like this to become a shopping
list; the intention is to develop this document further based on the
rapidly growing real-world experience with the first CDDL standard.</t>
    </section>
    <section anchor="base-language-features">
      <name>Base language features</name>
      <section anchor="cuts">
        <name>Cuts</name>
        <t><xref section="3.5.4" sectionFormat="of" target="RFC8610"/> alludes to a new language feature, <em>cuts</em>,
and defines it in a fashion that is rather focused on a single
application in the context of maps and generating better diagnostic
information about them.</t>
        <t>The present document is expected to grow a more complete definition of
cuts, with the expectation that it will be upwards-compatible to the
existing one in <xref target="RFC8610"/>, before this possibly becomes a mainline
language feature in a future version of CDDL.</t>
      </section>
    </section>
    <section anchor="lit">
      <name>Literal syntax</name>
      <t>Literal syntax is also discussed in <xref section="A.1" sectionFormat="of" target="I-D.bormann-cbor-cddl-2-draft"/>,
which might provide another approach to <xref target="relit"/>.
This appendix is in turn based on ideas in <xref target="I-D.bormann-cbor-edn-literals"/>.</t>
      <section anchor="relit">
        <name>Regular Expression Literals</name>
        <t>Regular expressions currently are notated as strings in CDDL, with all
the string escaping rules applied once.  It might be convenient to
have a more conventional literal format for regular expressions,
possibly also providing a place to add modifiers such as <tt>/i</tt>.
This might also imply <tt>text .regexp ...</tt>, which with the proposal in
<xref target="pcre"/> then raises the question of how to indicate the regular
expression flavor.</t>
        <t>(With the support for ABNF in <xref target="RFC9165"/>, the need for this is
reduced.
Also, the proliferation of regular expression flavors is hard to
address with a single syntax.)</t>
      </section>
    </section>
    <section anchor="controls">
      <name>Controls</name>
      <t>Controls are the main extension point of the CDDL language.
It is relatively painless to add controls to CDDL; this mechanism has
been exercised in <xref target="RFC9090"/> for SDNV <xref target="RFC6256"/> and ASN.1 OID related byte
strings, and in <xref target="RFC9165"/> for more generally applicable controls,
including an interface to ABNF <xref target="RFC5234"/> <xref target="RFC7405"/>.
A more recent collection of additions that is ready for
standardization is specified in <xref target="I-D.bormann-cbor-cddl-more-control"/>.</t>
      <t>Several further candidates have been identified that aren't quite ready for
adoption, of which a few shall be listed here.</t>
      <section anchor="pcre">
        <name>Control operator .pcre</name>
        <t>There are many variants of regular expression languages.
<xref section="3.8.3" sectionFormat="of" target="RFC8610"/> defines the .regexp control, which is
based on <xref target="XSD2">XSD</xref> regular expressions.
As discussed in that section, the most desirable form of regular
expressions in many cases is the family called "Perl-Compatible
Regular Expressions" (<xref target="PCRE"/>); however, no formally stable
definition of PCRE is available at this time for normatively
referencing it from an RFC.</t>
        <t>The present document defines the control operator .pcre, which is
similar to .regexp, but uses PCRE2 regular expressions.
More specifically, a <tt>.pcre</tt> control indicates that the text string
given as a target needs to match the PCRE regular expression given as
a value in the control type, where that regular expression is anchored
on both sides.
(If anchoring is not desired for a side, <tt>.*</tt> needs to be inserted
there.)</t>
        <t>Similarly, <tt>.es2018re</tt> could be defined for ECMAscript 2018 regular
expressions with anchors added.</t>
        <t>See also <xref target="I-D.draft-bormann-jsonpath-iregexp"/>, which could be specifically called out via
<tt>.iregexp</tt> (even though <tt>.regexp</tt> as per <xref section="3.8.3" sectionFormat="of" target="RFC8610"/>
would also have the same semantics, except for a wider range of regexps).</t>
      </section>
      <section anchor="endianness-in-bits">
        <name>Endianness in .bits</name>
        <t>How useful would it be to have another variant of .bits that counts
bits like in RFC box notation?  (Or at least per-byte?  32-bit words
don't always perfectly mesh with byte strings.)</t>
      </section>
      <section anchor="bitfield-control">
        <name>.bitfield control</name>
        <t>Provide a way to specify bitfields in byte strings and uints to a
higher level of detail than is possible with .bits.  Strawman:</t>
        <sourcecode type="CDDL"><![CDATA[
Field = uint .bitfield Fieldbits

Fieldbits = [
  flag1: [1, bool],
  val: [4, Vals],
  flag2: [1, bool],
]

Vals = &(A: 0, B: 1, C: 2, D: 3)
]]></sourcecode>
        <t>Note that the group within the controlling array can have choices,
enabling the whole power of a context-free grammar (but not much more).</t>
      </section>
    </section>
    <section anchor="co-occ">
      <name>Co-occurrence Constraints</name>
      <t>While there are no co-occurrence constraints in CDDL, many actual use
cases can be addressed by using the fact that a group is a grammar:</t>
      <sourcecode type="CDDL"><![CDATA[
postal = {
  ( street: text,
    housenumber: text) //
  ( pobox: text .regexp "[0-9]+" )
}
]]></sourcecode>
      <t>However, constraints that are not just structural/tree-based but are
predicates combining parts of the structure cannot be expressed:</t>
      <sourcecode type="CDDLx"><![CDATA[
session = {
  timeout: uint,
}

other-session = {
  timeout: uint  .lt [somehow refer to session.timeout],
}
]]></sourcecode>
      <t>As a minimum, this requires the ability to reach over to other parts
of the tree in a control.  Compare JSON Pointer <xref target="RFC6901"/> and JSON
Relative Pointer <xref target="I-D.handrews-relative-json-pointer"/>.
<contact fullname="Stefan Gössner"/>'s jsonpath is a JSON variant of XPath that is now
undergoing standardization <xref target="jsonpath"/>.</t>
      <t>More generally, something akin to what Schematron is to Relax-NG may
be needed.</t>
    </section>
    <section anchor="altrep">
      <name>Alternative Representations</name>
      <t>For CDDL, alternative representations e.g. in JSON (and thus in YAML)
could be defined, similar to the way YANG defines an XML-based
serialization called YIN in <xref section="11" sectionFormat="of" target="RFC6020"/>.
One proposal for such a syntax is provided by the <tt>cddlc</tt> tool
<xref target="cddlc"/>, which is reproduced below.
This could be written up in more detail and agreed upon.
(Since cddlc version 0.1.8, the "mem"-labeled array includes
information about the presence of a cut, see <xref section="3.5.4" sectionFormat="of" target="RFC8610"/>.)</t>
      <sourcecode type="cddl"><![CDATA[
cddlj = ["cddl", +rule]
rule = ["=" / "/=" / "//=", namep, type]
namep = ["name", id] / ["gen", id, +id]
id = text .regexp "[A-Za-z@_$](([-.])*[A-Za-z0-9@_$])*"
op = ".." / "..." /
  text .regexp "\\.[A-Za-z@_$](([-.])*[A-Za-z0-9@_$])*"
namea = ["name", id] / ["gen", id, +type]
type = value / namea / ["op", op, type, type] /
  ["map", group] / ["ary", group] / ["tcho", 2*type] /
  ["unwrap", namea] / ["enum", group / namea] /
  ["prim", ?((6, type/uint, ?type) // (0..7, ?uint))]
group = ["mem", bool, null/type, type] /
  ["rep", uint, uint/false, group] /
  ["seq", 2*group] / ["gcho", 2*group]
value = ["number"/"text"/"bytes", text]
]]></sourcecode>
      <t>The "prim"-labeled array includes support for non-literal tag numbers
(<xref section="2.1" sectionFormat="of" target="I-D.bormann-cbor-cddl-2-draft"/>).</t>
      <t>More recently, a variant of this format has been used for easier
processing.  It collects rules in a map (JSON object) and binds
generic parameters to argument positions.  This variant will be
described in a further revision of this document.</t>
    </section>
    <section anchor="alttarget">
      <name>Other target formats</name>
      <t>CDDL has originally been designed to describe CBOR and JSON data.
One format of interest is comma-separated values, CSV <xref target="RFC4180"/>.
<xref target="I-D.bormann-cbor-cddl-csv"/> is a draft for using CDDL models with CSV.</t>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <t>This document makes no requests of IANA.</t>
    </section>
    <section anchor="security-considerations">
      <name>Security considerations</name>
      <t>The security considerations of <xref target="RFC8610"/> apply.</t>
    </section>
  </middle>
  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>
        <reference anchor="RFC8610">
          <front>
            <title>Concise Data Definition Language (CDDL): A Notational Convention to Express Concise Binary Object Representation (CBOR) and JSON Data Structures</title>
            <author fullname="H. Birkholz" initials="H." surname="Birkholz">
              <organization/>
            </author>
            <author fullname="C. Vigano" initials="C." surname="Vigano">
              <organization/>
            </author>
            <author fullname="C. Bormann" initials="C." surname="Bormann">
              <organization/>
            </author>
            <date month="June" year="2019"/>
            <abstract>
              <t>This document proposes a notational convention to express Concise Binary Object Representation (CBOR) data structures (RFC 7049).  Its main goal is to provide an easy and unambiguous way to express structures for protocol messages and data formats that use CBOR or JSON.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8610"/>
          <seriesInfo name="DOI" value="10.17487/RFC8610"/>
        </reference>
        <reference anchor="RFC9165">
          <front>
            <title>Additional Control Operators for the Concise Data Definition Language (CDDL)</title>
            <author fullname="C. Bormann" initials="C." surname="Bormann">
              <organization/>
            </author>
            <date month="December" year="2021"/>
            <abstract>
              <t>The Concise Data Definition Language (CDDL), standardized in RFC 8610, provides "control operators" as its main language extension point.</t>
              <t>The present document defines a number of control operators that were not yet ready at the time RFC 8610 was completed: , , and  for the construction of constants; / for including ABNF (RFC 5234 and RFC 7405) in CDDL specifications; and for indicating the use of a non-basic feature in an instance.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9165"/>
          <seriesInfo name="DOI" value="10.17487/RFC9165"/>
        </reference>
      </references>
      <references>
        <name>Informative References</name>
        <reference anchor="RFC5234">
          <front>
            <title>Augmented BNF for Syntax Specifications: ABNF</title>
            <author fullname="D. Crocker" initials="D." role="editor" surname="Crocker">
              <organization/>
            </author>
            <author fullname="P. Overell" initials="P." surname="Overell">
              <organization/>
            </author>
            <date month="January" year="2008"/>
            <abstract>
              <t>Internet technical specifications often need to define a formal syntax.  Over the years, a modified version of Backus-Naur Form (BNF), called Augmented BNF (ABNF), has been popular among many Internet specifications.  The current specification documents ABNF. It balances compactness and simplicity with reasonable representational power.  The differences between standard BNF and ABNF involve naming rules, repetition, alternatives, order-independence, and value ranges.  This specification also supplies additional rule definitions and encoding for a core lexical analyzer of the type common to several Internet specifications.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="68"/>
          <seriesInfo name="RFC" value="5234"/>
          <seriesInfo name="DOI" value="10.17487/RFC5234"/>
        </reference>
        <reference anchor="RFC7405">
          <front>
            <title>Case-Sensitive String Support in ABNF</title>
            <author fullname="P. Kyzivat" initials="P." surname="Kyzivat">
              <organization/>
            </author>
            <date month="December" year="2014"/>
            <abstract>
              <t>This document extends the base definition of ABNF (Augmented Backus-Naur Form) to include a way to specify US-ASCII string literals that are matched in a case-sensitive manner.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7405"/>
          <seriesInfo name="DOI" value="10.17487/RFC7405"/>
        </reference>
        <reference anchor="RFC9090">
          <front>
            <title>Concise Binary Object Representation (CBOR) Tags for Object Identifiers</title>
            <author fullname="C. Bormann" initials="C." surname="Bormann">
              <organization/>
            </author>
            <date month="July" year="2021"/>
            <abstract>
              <t>The Concise Binary Object Representation (CBOR), defined in RFC 8949, is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation.</t>
              <t>This document defines CBOR tags for object identifiers (OIDs) and is the reference document for the IANA registration of the CBOR tags so defined.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9090"/>
          <seriesInfo name="DOI" value="10.17487/RFC9090"/>
        </reference>
        <reference anchor="RFC6256">
          <front>
            <title>Using Self-Delimiting Numeric Values in Protocols</title>
            <author fullname="W. Eddy" initials="W." surname="Eddy">
              <organization/>
            </author>
            <author fullname="E. Davies" initials="E." surname="Davies">
              <organization/>
            </author>
            <date month="May" year="2011"/>
            <abstract>
              <t>Self-Delimiting Numeric Values (SDNVs) have recently been introduced as a field type in proposed Delay-Tolerant Networking protocols. SDNVs encode an arbitrary-length non-negative integer or arbitrary- length bitstring with minimum overhead.  They are intended to provide protocol flexibility without sacrificing economy and to assist in future-proofing protocols under development.  This document describes formats and algorithms for SDNV encoding and decoding, along with notes on implementation and usage.  This document is a product of the Delay-Tolerant Networking Research Group and has been reviewed by that group.  No objections to its publication as an RFC were raised.  This document is not an Internet Standards Track specification; it is published for informational purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6256"/>
          <seriesInfo name="DOI" value="10.17487/RFC6256"/>
        </reference>
        <reference anchor="XSD2" target="https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/">
          <front>
            <title>XML Schema Part 2: Datatypes Second Edition</title>
            <author fullname="Ashok Malhotra" role="editor"/>
            <author fullname="Paul V. Biron" role="editor"/>
            <date day="28" month="October" year="2004"/>
          </front>
          <seriesInfo name="W3C REC" value="REC-xmlschema-2-20041028"/>
          <seriesInfo name="W3C" value="REC-xmlschema-2-20041028"/>
        </reference>
        <reference anchor="PCRE" target="http://pcre.org/current/doc/html/">
          <front>
            <title>Perl-compatible Regular Expressions (revised API: PCRE2)</title>
            <author>
              <organization/>
            </author>
            <date>n.d.</date>
          </front>
        </reference>
        <reference anchor="I-D.draft-bormann-jsonpath-iregexp">
          <front>
            <title>I-Regexp: An Interoperable Regexp Format</title>
            <author fullname="Carsten Bormann" initials="C." surname="Bormann">
              <organization>Universität Bremen TZI</organization>
            </author>
            <author fullname="Tim Bray" initials="T." surname="Bray">
              <organization>Textuality</organization>
            </author>
            <date day="25" month="April" year="2022"/>
            <abstract>
              <t>   This document specifies I-Regexp, a flavor of regular expressions
   that is limited in scope with the goal of interoperation across many
   different regular-expression libraries.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-bormann-jsonpath-iregexp-04"/>
        </reference>
        <reference anchor="cddlc" target="https://github.com/cabo/cddlc">
          <front>
            <title>CDDL conversion utilities</title>
            <author>
              <organization/>
            </author>
            <date>n.d.</date>
          </front>
        </reference>
        <reference anchor="jsonpath" target="https://jsonpath.com">
          <front>
            <title>jsonpath online evaluator</title>
            <author>
              <organization/>
            </author>
            <date>n.d.</date>
          </front>
        </reference>
        <reference anchor="I-D.bormann-cbor-cddl-2-draft">
          <front>
            <title>CDDL 2.0 -- a draft plan</title>
            <author fullname="Carsten Bormann" initials="C." surname="Bormann">
              <organization>Universität Bremen TZI</organization>
            </author>
            <date day="10" month="March" year="2023"/>
            <abstract>
              <t>   The Concise Data Definition Language (CDDL) today is defined by
   RFC 8610 and RFC 9165.  The latter (as well as some more application
   specific specifications such as RFC 9090) have used the extension
   point provided in RFC 8610, the control operator.

   As CDDL is used in larger projects, feature requirements become known
   that cannot be easily mapped into this single extension point.
   Hence, there is a need for evolution of the base CDDL specification
   itself.

   The present document provides a roadmap towards a "CDDL 2.0".  It is
   based on draft-bormann-cbor-cddl-freezer, but is more selective in
   what potential features it takes up and more detailed in their
   discussion.  It is intended to serve as a basis for prototypical
   implementations of CDDL 2.0.  What specific documents spawn from the
   present one or whether this document is evolved into a single
   CDDL 2.0 specification.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-bormann-cbor-cddl-2-draft-02"/>
        </reference>
        <reference anchor="I-D.bormann-cbor-edn-literals">
          <front>
            <title>Application-Oriented Literals in CBOR Extended Diagnostic Notation</title>
            <author fullname="Carsten Bormann" initials="C." surname="Bormann">
              <organization>Universität Bremen TZI</organization>
            </author>
            <date day="24" month="October" year="2022"/>
            <abstract>
              <t>   The Concise Binary Object Representation, CBOR (RFC 8949), defines a
   "diagnostic notation" in order to be able to converse about CBOR data
   items without having to resort to binary data.

   This document specifies how to add application-oriented extensions to
   the diagnostic notation.  It then defines two such extensions for the
   use of CBOR diagnostic notation with CoRAL and Constrained Resource
   Identifiers (draft-ietf-core-coral, draft-ietf-core-href).

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-bormann-cbor-edn-literals-01"/>
        </reference>
        <reference anchor="I-D.bormann-cbor-update-8610-grammar">
          <front>
            <title>Updates to the CDDL grammar of RFC 8610</title>
            <author fullname="Carsten Bormann" initials="C." surname="Bormann">
              <organization>Universität Bremen TZI</organization>
            </author>
            <date day="9" month="March" year="2023"/>
            <abstract>
              <t>   At the time of writing, the Concise Data Definition Language (CDDL)
   is defined by RFC 8610 and RFC 9165.  The latter has used the
   extension point provided in RFC 8610, the _control operator_.

   As CDDL is being used in larger projects, the need for corrections
   and additional features has become known that cannot be easily mapped
   into this single extension point.  Hence, there is a need for
   evolution of the base CDDL specification itself.

   The present document updates errata and makes other small fixes for
   the ABNF grammar defined for CDDL in RFC 8610.


   // Previous versions of the changes in this document were part of
   // draft-bormann-cbor-cddl-2-draft and previously draft-bormann-cbor-
   // cddl-freezer.  This submission extracts out those grammar changes
   // that are ready for WG adoption and publication.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-bormann-cbor-update-8610-grammar-00"/>
        </reference>
        <reference anchor="I-D.bormann-cbor-cddl-more-control">
          <front>
            <title>More Control Operators for CDDL</title>
            <author fullname="Carsten Bormann" initials="C." surname="Bormann">
              <organization>Universität Bremen TZI</organization>
            </author>
            <date day="9" month="March" year="2023"/>
            <abstract>
              <t>   The Concise Data Definition Language (CDDL), standardized in RFC
   8610, provides "control operators" as its main language extension
   point.  RFCs have added to this extension point both in an
   application-specific and a more general way.

   The present document defines a number of additional generally
   application control operators for text conversion (Bytes, Integers,
   JSON), operations on text, and deterministic encoding.


   // Revision -01 of this draft reflects comments from initial
   // discussion of the specification in the CBOR working group.  It is
   // intended to be ready for working group adoption.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-bormann-cbor-cddl-more-control-01"/>
        </reference>
        <reference anchor="I-D.bormann-cbor-cddl-modules">
          <front>
            <title>CDDL Module Structure</title>
            <author fullname="Carsten Bormann" initials="C." surname="Bormann">
              <organization>Universität Bremen TZI</organization>
            </author>
            <date day="10" month="March" year="2023"/>
            <abstract>
              <t>   At the time of writing, the Concise Data Definition Language (CDDL)
   is defined by RFC 8610 and RFC 9165.  The latter has used the
   extension point provided in RFC 8610, the _control operator_.

   As CDDL is being used in larger projects, the need for corrections
   and additional features has become known that cannot be easily mapped
   into this single extension point.  Hence, there is a need for
   evolution of the base CDDL specification itself.

   The present document defines a backward- and forward-compatible way
   to add a module structure to CDDL.


   // Previous versions of the changes in this document were part of
   // draft-bormann-cbor-cddl-2-draft and previously draft-bormann-cbor-
   // cddl-freezer.  This submission extracts out the functionality that
   // is ready for WG adoption and further WG work.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-bormann-cbor-cddl-modules-00"/>
        </reference>
        <reference anchor="I-D.bormann-cbor-cddl-csv">
          <front>
            <title>Using CDDL for CSVs</title>
            <author fullname="Carsten Bormann" initials="C." surname="Bormann">
              <organization>Universität Bremen TZI</organization>
            </author>
            <date day="27" month="February" year="2023"/>
            <abstract>
              <t>   The Concise Data Definition Language (CDDL), standardized in RFC
   8610, is defined to provide data models for data shaped like JSON or
   CBOR.

   Another representation format that is quote popular is the CSV
   (Comma-Separated Values) file as defined by RFC 4180.

   The present document shows a way how to use CDDL to provide a data
   model for CSV files.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-bormann-cbor-cddl-csv-02"/>
        </reference>
        <reference anchor="RFC6901">
          <front>
            <title>JavaScript Object Notation (JSON) Pointer</title>
            <author fullname="P. Bryan" initials="P." role="editor" surname="Bryan">
              <organization/>
            </author>
            <author fullname="K. Zyp" initials="K." surname="Zyp">
              <organization/>
            </author>
            <author fullname="M. Nottingham" initials="M." role="editor" surname="Nottingham">
              <organization/>
            </author>
            <date month="April" year="2013"/>
            <abstract>
              <t>JSON Pointer defines a string syntax for identifying a specific value within a JavaScript Object Notation (JSON) document.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6901"/>
          <seriesInfo name="DOI" value="10.17487/RFC6901"/>
        </reference>
        <reference anchor="I-D.handrews-relative-json-pointer">
          <front>
            <title>Relative JSON Pointers</title>
            <author fullname="Geraint Luff" initials="G." surname="Luff">
         </author>
            <author fullname="Henry Andrews" initials="H." surname="Andrews">
         </author>
            <date day="18" month="September" year="2019"/>
            <abstract>
              <t>   JSON Pointer is a syntax for specifying locations in a JSON document,
   starting from the document root.  This document defines an extension
   to the JSON Pointer syntax, allowing relative locations from within
   the document.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-handrews-relative-json-pointer-02"/>
        </reference>
        <reference anchor="RFC6020">
          <front>
            <title>YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)</title>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund">
              <organization/>
            </author>
            <date month="October" year="2010"/>
            <abstract>
              <t>YANG is a data modeling language used to model configuration and state data manipulated by the Network Configuration Protocol (NETCONF), NETCONF remote procedure calls, and NETCONF notifications. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6020"/>
          <seriesInfo name="DOI" value="10.17487/RFC6020"/>
        </reference>
        <reference anchor="RFC4180">
          <front>
            <title>Common Format and MIME Type for Comma-Separated Values (CSV) Files</title>
            <author fullname="Y. Shafranovich" initials="Y." surname="Shafranovich">
              <organization/>
            </author>
            <date month="October" year="2005"/>
            <abstract>
              <t>This RFC documents the format used for Comma-Separated Values (CSV) files and registers the associated MIME type "text/csv".  This memo provides information for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4180"/>
          <seriesInfo name="DOI" value="10.17487/RFC4180"/>
        </reference>
      </references>
    </references>
    <section numbered="false" anchor="acknowledgements">
      <name>Acknowledgements</name>
      <t>Before <xref target="RFC8610"/> was finally published, many people have asked for CDDL to be completed, soon.
These are usually also the people who have brought up observations
that led to the proposals discussed here.
Sean Leonard has campaigned for a regexp literal syntax.</t>
    </section>
  </back>
  <!-- ##markdown-source:
H4sIAAAAAAAAA+1a63LbyLH+P08xRZ86oXYJiKJkx+bGZyNL9kYp38ras5co
qtUQGJKzBjHIDCBKy1KeJs+QF8iLna97BhCoS65/j6psEeCgp7un++uvG0qS
RFxO5b4QtakLPZX/I6Q8lHOt6sZpOXda/6KdnFsn66WWR7bMjNfyWNVKHuu5
KU1tbCnfqnLRqIWWw6Pj47c7Qs1mTkMuXd0VJnKblWqFvXKn5nUys26lyjLJ
8CHJ8rxI4sJkb0/kqsbCyXiyn4z36cZnfb22Lo+i9aUtGtJAZKqeSlPOrfC1
02o1lSevv30jRGWm8qy22Uh66/DN3OPT9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