Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / ttcn2json / Main_e.json
1 {
2 "$schema" : "http://json-schema.org/draft-04/schema#",
3 "definitions" : {
4 "Main" : {
5 "HasPardType" : {
6 "type" : "object",
7 "subType" : "record",
8 "properties" : {
9 "pard" : {
10 "$ref" : "#/definitions/PDU_Definitions/ProtocolElem_Field1"
11 },
12 "buul" : {
13 "type" : "boolean"
14 },
15 "price" : {
16 "$ref" : "#/definitions/PDU_Definitions/Price"
17 }
18 },
19 "additionalProperties" : false,
20 "fieldOrder" : [
21 "pard",
22 "buul",
23 "price"
24 ],
25 "required" : [
26 "pard",
27 "buul",
28 "price"
29 ]
30 }
31 },
32 "PDU_Definitions" : {
33 "Priority" : {
34 "enum" : [
35 "low",
36 "normal",
37 "medium",
38 "high",
39 "urgent"
40 ],
41 "numericValues" : [
42 0,
43 1,
44 2,
45 3,
46 4
47 ]
48 },
49 "Conditionality" : {
50 "enum" : [
51 "optional_",
52 "conditional",
53 "mandatory"
54 ],
55 "numericValues" : [
56 0,
57 1,
58 2
59 ]
60 },
61 "ProtocolElem_ID" : {
62 "type" : "integer"
63 },
64 "ProtocolElem_Field2" : {
65 "type" : "object",
66 "subType" : "record",
67 "properties" : {
68 "id" : {
69 "$ref" : "#/definitions/PDU_Definitions/ProtocolElem_ID"
70 },
71 "priority" : {
72 "$ref" : "#/definitions/PDU_Definitions/Priority"
73 },
74 "val" : {
75 "anyOf" : [
76 {
77 "type" : "object",
78 "properties" : {
79 "iA5String" : {
80 "type" : "string",
81 "subType" : "charstring"
82 }
83 },
84 "additionalProperties" : false,
85 "required" : [
86 "iA5String"
87 ]
88 }
89 ]
90 }
91 },
92 "additionalProperties" : false,
93 "fieldOrder" : [
94 "id",
95 "priority",
96 "val"
97 ],
98 "required" : [
99 "id",
100 "priority",
101 "val"
102 ]
103 },
104 "ProtocolElem_Field1" : {
105 "type" : "object",
106 "subType" : "record",
107 "properties" : {
108 "id" : {
109 "$ref" : "#/definitions/PDU_Definitions/ProtocolElem_ID"
110 },
111 "priority" : {
112 "$ref" : "#/definitions/PDU_Definitions/Priority"
113 },
114 "val" : {
115 "anyOf" : [
116 {
117 "type" : "object",
118 "properties" : {
119 "iNTEGER" : {
120 "type" : "integer"
121 }
122 },
123 "additionalProperties" : false,
124 "required" : [
125 "iNTEGER"
126 ]
127 },
128 {
129 "type" : "object",
130 "properties" : {
131 "iA5String" : {
132 "type" : "string",
133 "subType" : "charstring"
134 }
135 },
136 "additionalProperties" : false,
137 "required" : [
138 "iA5String"
139 ]
140 }
141 ]
142 }
143 },
144 "additionalProperties" : false,
145 "fieldOrder" : [
146 "id",
147 "priority",
148 "val"
149 ],
150 "required" : [
151 "id",
152 "priority",
153 "val"
154 ]
155 },
156 "Price" : {
157 "anyOf" : [
158 {
159 "type" : "object",
160 "properties" : {
161 "value_" : {
162 "anyOf" : [
163 {
164 "type" : "number"
165 },
166 {
167 "enum" : [
168 "not_a_number",
169 "infinity",
170 "-infinity"
171 ]
172 }
173 ]
174 }
175 },
176 "additionalProperties" : false,
177 "required" : [
178 "value_"
179 ]
180 },
181 {
182 "type" : "object",
183 "properties" : {
184 "invaluable" : {
185 "type" : "null"
186 }
187 },
188 "additionalProperties" : false,
189 "required" : [
190 "invaluable"
191 ]
192 }
193 ]
194 },
195 "Object" : {
196 "type" : "object",
197 "subType" : "record",
198 "properties" : {
199 "id" : {
200 "type" : "string",
201 "subType" : "objid",
202 "pattern" : "^[0-2][.][1-3]?[0-9]([.][0-9]|([1-9][0-9]+))*$"
203 },
204 "data" : {
205 "type" : "string",
206 "subType" : "octetstring",
207 "pattern" : "^([0-9A-Fa-f][0-9A-Fa-f])*$"
208 }
209 },
210 "additionalProperties" : false,
211 "fieldOrder" : [
212 "id",
213 "data"
214 ],
215 "required" : [
216 "id",
217 "data"
218 ]
219 },
220 "HasNull" : {
221 "type" : "object",
222 "subType" : "record",
223 "properties" : {
224 "theNull" : {
225 "type" : "null"
226 }
227 },
228 "additionalProperties" : false
229 }
230 }
231 },
232 "anyOf" : [
233 {
234 "$ref" : "#/definitions/Main/HasPardType",
235 "decoding" : {
236 "prototype" : [
237 "convert",
238 "f_dec_hpt",
239 "x"
240 ]
241 },
242 "encoding" : {
243 "prototype" : [
244 "convert",
245 "f_enc_hpt",
246 "x"
247 ],
248 "printing" : "pretty"
249 }
250 },
251 {
252 "$ref" : "#/definitions/PDU_Definitions/ProtocolElem_Field1",
253 "encoding" : {
254 "prototype" : [
255 "convert",
256 "f_enc_pard",
257 "x"
258 ],
259 "printing" : "pretty"
260 }
261 },
262 {
263 "$ref" : "#/definitions/PDU_Definitions/Object",
264 "decoding" : {
265 "prototype" : [
266 "convert",
267 "f_dec_obj",
268 "x"
269 ]
270 },
271 "encoding" : {
272 "prototype" : [
273 "convert",
274 "f_enc_obj",
275 "x"
276 ]
277 }
278 }
279 ]
280 }
This page took 0.041152 seconds and 5 git commands to generate.