Lines Matching refs:data
5 It comes with a schema-driven script tool that can validate your data, or even generate code.
8 The validation and conversion part of the tool works with YAML and JSON data, in addition to CBOR.
12 …CBOR encoding and decoding using the C library, while also validating the data against all the rul…
14 …DDL (Concise Data Definition Language) which is a powerful human-readable data description languag…
28 - Decode and validate incoming CBOR data into human-readable YAML/JSON.
41 …ther with generated code, and how to use the script tool to do code generation and data conversion.
73 …ecoding_ if there are any lists, maps, or CBOR-encoded strings (`zcbor_bstr_*_decode`) in the data.
95 …ary more often use state backups. When decoding, ensure that the incoming data conforms to canonic…
106 The zcbor.py script can directly read CBOR, YAML, or JSON data and validate it against a CDDL descr…
107 It can also freely convert the data between CBOR/YAML/JSON.
108 It can also output the data to a C file formatted as a byte array.
115 …alized examples for validating, and for converting (which also validates) data from the command li…
116 The script infers the data format from the file extension, but the format can also be specified exp…
120 zcbor validate -c <CDDL description file> -t <which CDDL type to expect> -i <input data file>
121 …c <CDDL description file> -t <which CDDL type to expect> -i <input data file> -o <output data file>
127 …or/zcbor.py validate -c <CDDL description file> -t <which CDDL type to expect> -i <input data file>
128 …c <CDDL description file> -t <which CDDL type to expect> -i <input data file> -o <output data file>
135 DataTranslator can be used to programmatically perform the translations, or to manipulate the data.
136 When accessing the data, you can choose between two internal formats:
142 2. A custom format which allows accessing the data via the names from the CDDL description file.
143 … immutable, meaning that it can be used for inspecting data, but not for changing or creating data.
148 Since CBOR supports more data types than YAML and JSON, zcbor can optionally use a bespoke format w…
150 This is relevant when handling YAML/JSON conversions of data that uses the unsupported features.
151 The following data types are supported by CBOR, but not by YAML (or JSON which is a subset of YAML):
153 …tr": <any type>}` if the CBOR bytestring contains CBOR-formatted data, in which the data is decode…
155 …`. In YAML, these are represented as `{"zcbor_tag": <tag number>, "zcbor_tag_val": <tagged data>}`.
172 …ates code that uses the C library to decode CBOR data into the structs, and/or encode CBOR from th…
185 CDDL allows placing restrictions on the members of your data.
239 …gainst the Pet type in the CDDL description in pet.cddl, and writes binary CBOR data to mypet.cbor.
305 …g. `Foo = bstr .cbor Bar` where Foo is a bstr whose contents must be CBOR data decodable as the Ba…
317 The label is only for readability and does not impact the data structure in any way.
328 Encoded CBOR data elements look like this.
372 It was inspired by the need to securely decode the complex manifest data structures in the [IETF SU…
374 Decoding/deserializing data securely requires doing some quite repetitive checks on each data eleme…
377 The script was also expanded so it could directly manipulate CBOR data.
378 … in roughly the same way internally in Python, it was easy to expand that data manipulation to sup…
533 Read CBOR, YAML, or JSON data from file or stdin and validate it against a
546 Input data file. The option --input-as specifies how
554 Name of the type (from the CDDL) to interpret the data
558 is specified. It is only relevant when handling data
564 data is guaranteed to convert into YAML/JSON. JSON and
565 YAML do not support all data types that CBOR/CDDL
585 decodes the CBOR/YAML/JSON data from a file or stdin and verifies that it
586 conforms to the CDDL description. The script fails if the data does not
599 Input data file. The option --input-as specifies how
607 Name of the type (from the CDDL) to interpret the data
611 is specified. It is only relevant when handling data
617 data is guaranteed to convert into YAML/JSON. JSON and
618 YAML do not support all data types that CBOR/CDDL
623 Output data file. The option --output-as specifies how