1 # The MIT License (MIT)
3 # Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
5 # Permission is hereby granted, free of charge, to any person obtaining
6 # a copy of this software and associated documentation files (the
7 # "Software"), to deal in the Software without restriction, including
8 # without limitation the rights to use, copy, modify, merge, publish,
9 # distribute, sublicense, and/or sell copies of the Software, and to
10 # permit persons to whom the Software is furnished to do so, subject to
11 # the following conditions:
13 # The above copyright notice and this permission notice shall be
14 # included in all copies or substantial portions of the Software.
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 $schema: http://json-schema.org/draft-07/schema#
25 $id: https://barectf.org/schemas/config/3/config.json
26 title: Effective configuration object
39 - unsigned-enumeration
43 $ref: https://barectf.org/schemas/config/3/field-type.json#/definitions/uint-ft-class-prop
45 $ref: https://barectf.org/schemas/config/3/field-type.json#/definitions/uint-ft
49 $ref: https://barectf.org/schemas/config/3/field-type.json#/definitions/uenum-ft-class-prop
51 $ref: https://barectf.org/schemas/config/3/field-type.json#/definitions/uenum-ft
52 opt-or-def-feature-uint-ft:
56 $ref: '#/definitions/feature-uint-ft'
65 $ref: '#/definitions/feature-uint-ft'
77 $ref: https://barectf.org/schemas/config/3/field-type.json#/definitions/struct-ft
85 $ref: '#/definitions/trace-type'
87 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-env-prop
91 title: Trace type object
95 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/byte-order-prop
97 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-trace-type-uuid-prop
105 - $ref: '#/definitions/opt-or-def-feature-uint-ft'
117 - $ref: https://barectf.org/schemas/config/3/field-type.json#/definitions/static-array-ft
123 - $ref: '#/definitions/feature-uint-ft'
139 data-stream-type-id-field-type:
140 $ref: '#/definitions/opt-or-def-feature-uint-ft'
141 additionalProperties: false
145 title: Clock types object
148 '^[A-Za-z_][A-Za-z0-9_]*$':
149 $ref: '#/definitions/clock-type'
150 additionalProperties: false
152 title: Data stream types object
155 '^[A-Za-z_][A-Za-z0-9_]*$':
156 $ref: '#/definitions/dst'
157 additionalProperties: false
162 additionalProperties: false
164 title: Clock type object
168 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-uuid-prop
170 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-string
172 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-int-min-1
174 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-int-min-0
176 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-clock-type-offset-prop
177 origin-is-unix-epoch:
178 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-bool
180 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-string
181 additionalProperties: false
183 title: Data stream type object
187 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-bool
188 $default-clock-type-name:
192 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/iden-prop
205 total-size-field-type:
206 $ref: '#/definitions/opt-feature-uint-ft'
207 content-size-field-type:
208 $ref: '#/definitions/opt-feature-uint-ft'
209 beginning-timestamp-field-type:
210 $ref: '#/definitions/opt-or-def-feature-uint-ft'
211 end-timestamp-field-type:
212 $ref: '#/definitions/opt-or-def-feature-uint-ft'
213 discarded-event-records-counter-snapshot-field-type:
214 $ref: '#/definitions/opt-or-def-feature-uint-ft'
215 additionalProperties: false
224 $ref: '#/definitions/opt-or-def-feature-uint-ft'
225 timestamp-field-type:
226 $ref: '#/definitions/opt-or-def-feature-uint-ft'
227 additionalProperties: false
230 additionalProperties: false
233 packet-context-field-type-extra-members:
237 $ref: https://barectf.org/schemas/config/3/field-type.json#/definitions/struct-ft-members
240 event-record-common-context-field-type:
241 $ref: '#/definitions/opt-struct-ft'
243 title: Event record types object
246 '^[A-Za-z_][A-Za-z0-9_]*$':
247 $ref: '#/definitions/ert'
248 additionalProperties: false
252 additionalProperties: false
254 title: Event record type object
258 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/opt-int-min-0
259 specific-context-field-type:
260 $ref: '#/definitions/opt-struct-ft'
262 $ref: '#/definitions/opt-struct-ft'
263 additionalProperties: false
267 title: Configuration options object
271 title: Code generation configuration options object
278 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/config-prefix-prop
283 $ref: https://barectf.org/schemas/config/common/common.json#/definitions/iden-prop
289 additionalProperties: false
291 title: Header code generation configuration options object
294 identifier-prefix-definition:
296 default-data-stream-type-name-definition:
298 additionalProperties: false
299 additionalProperties: false
300 additionalProperties: false
302 $ref: '#/definitions/trace'
305 additionalProperties: false