5
5
# Vectors of strings #
6
6
# #####################
7
7
8
- ["$defs" .vec_string_attribute ]
8
+ [["$defs" .vec_string_attribute .oneOf ]]
9
+ title = " Shorthand notation"
10
+ anyOf = [
11
+ { type = " string" },
12
+ { type = " array" , items = { "type" = " string" } },
13
+ ]
14
+
15
+ [["$defs" .vec_string_attribute .oneOf ]]
16
+ title = " Long notation"
17
+ type = " object"
9
18
required = [" value" , " datatype" ]
10
19
11
- ["$defs" .vec_string_attribute .properties ]
20
+ ["$defs" .vec_string_attribute .oneOf . properties ]
12
21
13
- value.any_of = [
22
+ value.anyOf = [
14
23
{ type = " string" },
15
24
{ type = " array" , items = { "type" = " string" } },
16
25
]
@@ -30,12 +39,21 @@ datatype.enum = [
30
39
# Vectors of int #
31
40
# #################
32
41
33
- ["$defs" .vec_int_attribute ]
42
+ [["$defs" .vec_int_attribute .oneOf ]]
43
+ title = " Shorthand notation"
44
+ anyOf = [
45
+ { type = " integer" },
46
+ { type = " array" , items = { "type" = " integer" } },
47
+ ]
48
+
49
+ [["$defs" .vec_int_attribute .oneOf ]]
50
+ title = " Long notation"
51
+ type = " object"
34
52
required = [" value" , " datatype" ]
35
53
36
- ["$defs" .vec_int_attribute .properties ]
54
+ ["$defs" .vec_int_attribute .oneOf . properties ]
37
55
38
- value.any_of = [
56
+ value.anyOf = [
39
57
{ type = " integer" },
40
58
{ type = " array" , items = { "type" = " integer" } },
41
59
]
@@ -63,12 +81,21 @@ datatype.enum = [
63
81
# Vectors of float #
64
82
# ###################
65
83
66
- ["$defs" .vec_float_attribute ]
84
+ [["$defs" .vec_float_attribute .oneOf ]]
85
+ title = " Shorthand notation"
86
+ anyOf = [
87
+ { type = " number" },
88
+ { type = " array" , items = { "type" = " number" } },
89
+ ]
90
+
91
+ [["$defs" .vec_float_attribute .oneOf ]]
92
+ title = " Long notation"
93
+ type = " object"
67
94
required = [" value" , " datatype" ]
68
95
69
- ["$defs" .vec_float_attribute .properties ]
96
+ ["$defs" .vec_float_attribute .oneOf . properties ]
70
97
71
- value.any_of = [
98
+ value.anyOf = [
72
99
{ type = " number" },
73
100
{ type = " array" , items = { "type" = " number" } },
74
101
]
@@ -112,10 +139,17 @@ datatype.enum = [
112
139
# unitDimension attribute #
113
140
# ##########################
114
141
115
- ["$defs" .unitDimension ]
142
+ [["$defs" .unitDimension .oneOf ]]
143
+ title = " Shorthand notation"
144
+ type = " array"
145
+ items.type = " number"
146
+
147
+ [["$defs" .unitDimension .oneOf ]]
148
+ title = " Long notation"
149
+ type = " object"
116
150
required = [" value" , " datatype" ]
117
151
118
- ["$defs" .unitDimension .properties ]
152
+ ["$defs" .unitDimension .oneOf . properties ]
119
153
120
154
value = { type = " array" , items = { type = " number" } }
121
155
datatype.const = " ARR_DBL_7"
@@ -124,10 +158,16 @@ datatype.const = "ARR_DBL_7"
124
158
# string attributes #
125
159
# ####################
126
160
127
- ["$defs" .string_attribute ]
161
+ [["$defs" .string_attribute .oneOf ]]
162
+ title = " Shorthand notation"
163
+ type = " string"
164
+
165
+ [["$defs" .string_attribute .oneOf ]]
166
+ title = " Long notation"
167
+ type = " object"
128
168
required = [" value" , " datatype" ]
129
169
130
- ["$defs" .string_attribute .properties ]
170
+ ["$defs" .string_attribute .oneOf . properties ]
131
171
132
172
value.type = " string"
133
173
datatype.enum = [" STRING" , " CHAR" , " SCHAR" , " UCHAR" ]
@@ -136,10 +176,16 @@ datatype.enum = ["STRING", "CHAR", "SCHAR", "UCHAR"]
136
176
# int attributes #
137
177
# #################
138
178
139
- ["$defs" .int_attribute ]
179
+ [["$defs" .int_attribute .oneOf ]]
180
+ title = " Shorthand notation"
181
+ type = " integer"
182
+
183
+ [["$defs" .int_attribute .oneOf ]]
184
+ title = " Long notation"
185
+ type = " object"
140
186
required = [" value" , " datatype" ]
141
187
142
- ["$defs" .int_attribute .properties ]
188
+ ["$defs" .int_attribute .oneOf . properties ]
143
189
144
190
value.type = " integer"
145
191
datatype.enum = [
@@ -157,10 +203,16 @@ datatype.enum = [
157
203
# float attributes #
158
204
# ###################
159
205
160
- ["$defs" .float_attribute ]
206
+ [["$defs" .float_attribute .oneOf ]]
207
+ title = " Shorthand notation"
208
+ type = " number"
209
+
210
+ [["$defs" .float_attribute .oneOf ]]
211
+ title = " Long notation"
212
+ type = " object"
161
213
required = [" value" , " datatype" ]
162
214
163
- ["$defs" .float_attribute .properties ]
215
+ ["$defs" .float_attribute .oneOf . properties ]
164
216
165
217
value.type = " number"
166
218
datatype.enum = [
0 commit comments