Skip to content

Commit d98f723

Browse files
committed
WIP.
1 parent 94231ca commit d98f723

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

draft-mcnally-deterministic-cbor.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,13 @@ CDDL {{-CDDL}} is a widely used language for specifying CBOR data models. This s
236236

237237
The control operators `.dcbor` and `.dcborseq` are exactly like `.cbor` and `.cborseq` as defined in {{-CDDL}} except that they also require the encoded data item(s) to conform to dCBOR.
238238

239-
The CDDL Standard Prelude as defined in {{-CDDL}} Appendix D defines `number = int / float`. This type encompass the full space of CBOR numeric values representable by CBOR major types 0, 1, and 7. Therefore dCBOR applications can use `number` to specify fields with numeric values, and dCBOR's Numeric Reduction ensures that these values are encoded deterministically.
239+
The CDDL Standard Prelude as defined in {{-CDDL}} Appendix D defines:
240+
241+
```
242+
number = int / float
243+
```
244+
245+
This type encompasses the full space of CBOR numeric values representable by CBOR major types 0, 1, and 7. Therefore dCBOR applications can use `number` to specify fields with numeric values, and dCBOR's Numeric Reduction ensures that these values are encoded deterministically.
240246

241247
Tag 201 ({{tag201}}) is defined in this specification as a way to declare its tag content to conform to dCBOR at the data model level and the encoded data item level. (In conjunction with these semantics, tag 201 may also be employed as a boundary marker leading from an overall structure to specific application data items; see {{Section 3 of GordianEnvelope}} for an example for this usage.)
242248

0 commit comments

Comments
 (0)