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/3/config/config.json
26 title: Effective configuration object
39 - unsigned-enumeration
43 $ref: https://barectf.org/schemas/3/config/field-type.json#/definitions/uint-ft-class-prop
45 $ref: https://barectf.org/schemas/3/config/field-type.json#/definitions/uint-ft
49 $ref: https://barectf.org/schemas/3/config/field-type.json#/definitions/uenum-ft-class-prop
51 $ref: https://barectf.org/schemas/3/config/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/3/config/field-type.json#/definitions/struct-ft
85 $ref: '#/definitions/trace-type'
87 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-env-prop
91 title: Trace type object
95 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-trace-type-uuid-prop
97 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-byte-order-prop
105 - $ref: '#/definitions/opt-or-def-feature-uint-ft'
117 - $ref: https://barectf.org/schemas/3/config/field-type.json#/definitions/static-array-ft
123 - $ref: '#/definitions/feature-uint-ft'
139 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: Stream types object
155 '^[A-Za-z_][A-Za-z0-9_]*$':
156 $ref: '#/definitions/stream-type'
157 additionalProperties: false
161 additionalProperties: false
163 title: Clock type object
167 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-uuid-prop
169 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-string
171 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-int-min-1
173 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-int-min-0
175 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-clock-type-offset-prop
176 origin-is-unix-epoch:
177 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-bool
179 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-string
180 additionalProperties: false
182 title: Stream type object
186 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-bool
187 $default-clock-type-name:
191 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/iden-prop
204 total-size-field-type:
205 $ref: '#/definitions/opt-feature-uint-ft'
206 content-size-field-type:
207 $ref: '#/definitions/opt-feature-uint-ft'
208 beginning-time-field-type:
209 $ref: '#/definitions/opt-or-def-feature-uint-ft'
211 $ref: '#/definitions/opt-or-def-feature-uint-ft'
212 discarded-events-counter-field-type:
213 $ref: '#/definitions/opt-or-def-feature-uint-ft'
214 additionalProperties: false
223 $ref: '#/definitions/opt-or-def-feature-uint-ft'
225 $ref: '#/definitions/opt-or-def-feature-uint-ft'
226 additionalProperties: false
229 additionalProperties: false
232 packet-context-field-type-extra-members:
236 $ref: https://barectf.org/schemas/3/config/field-type.json#/definitions/struct-ft-members
239 event-common-context-field-type:
240 $ref: '#/definitions/opt-struct-ft'
242 title: Event types object
245 '^[A-Za-z_][A-Za-z0-9_]*$':
246 $ref: '#/definitions/event-type'
247 additionalProperties: false
251 additionalProperties: false
253 title: Event type object
257 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/opt-int-min-0
258 specific-context-field-type:
259 $ref: '#/definitions/opt-struct-ft'
261 $ref: '#/definitions/opt-struct-ft'
262 additionalProperties: false
266 title: Configuration options object
270 title: Code generation configuration options object
277 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/config-prefix-prop
282 $ref: https://barectf.org/schemas/common/config/common.json#/definitions/iden-prop
288 additionalProperties: false
290 title: Header code generation configuration options object
293 identifier-prefix-definition:
295 default-stream-type-name-definition:
297 additionalProperties: false
298 additionalProperties: false
299 additionalProperties: false
301 $ref: '#/definitions/trace'
304 additionalProperties: false