143135578ff91c63562c0619b86e1f0c7d28b890
[deliverable/barectf.git] / barectf / schemas / 2 / config / config-pre-field-type-expansion.yaml
1 # The MIT License (MIT)
2 #
3 # Copyright (c) 2020 Philippe Proulx <pproulx@efficios.com>
4 #
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:
12 #
13 # The above copyright notice and this permission notice shall be
14 # included in all copies or substantial portions of the Software.
15 #
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.
23
24 $schema: http://json-schema.org/draft-07/schema#
25 $id: https://barectf.org/schemas/2/config/config-pre-field-type-expansion.json
26 title: Configuration object before field type expansions
27 definitions:
28 partial-field-type:
29 title: Partial field type object
30 if:
31 type: object
32 then:
33 oneOf:
34 - properties:
35 class:
36 type: string
37 required:
38 - class
39 - properties:
40 inherit:
41 type: string
42 required:
43 - inherit
44 - properties:
45 $inherit:
46 type: string
47 required:
48 - $inherit
49 properties:
50 value-type:
51 $ref: '#/definitions/partial-field-type'
52 element-type:
53 $ref: '#/definitions/partial-field-type'
54 fields:
55 type: object
56 patternProperties:
57 '':
58 $ref: '#/definitions/partial-field-type'
59 else:
60 oneOf:
61 - type: string
62 - type: 'null'
63 type: object
64 properties:
65 metadata:
66 title: Metadata object before field type expansions
67 type: object
68 properties:
69 type-aliases:
70 title: Type aliases object before field type expansions
71 type: object
72 patternProperties:
73 '':
74 $ref: '#/definitions/partial-field-type'
75 trace:
76 title: Trace object before field type expansions
77 type: object
78 properties:
79 packet-header-type:
80 $ref: '#/definitions/partial-field-type'
81 streams:
82 title: Streams object before field type expansions
83 type: object
84 patternProperties:
85 '':
86 title: Stream object before field type expansions
87 type: object
88 properties:
89 packet-context-type:
90 $ref: '#/definitions/partial-field-type'
91 event-header-type:
92 $ref: '#/definitions/partial-field-type'
93 event-context-type:
94 $ref: '#/definitions/partial-field-type'
95 events:
96 type: object
97 patternProperties:
98 '':
99 type: object
100 properties:
101 context-type:
102 $ref: '#/definitions/partial-field-type'
103 payload-type:
104 $ref: '#/definitions/partial-field-type'
105 required:
106 - events
107 required:
108 - trace
109 - streams
110 required:
111 - metadata
This page took 0.030615 seconds and 3 git commands to generate.