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