Update INFO.yaml file
[integration.git] / test / mocks / pnfsimulator / json_schema / input_validator.json
1 {
2   "$schema": "http://json-schema.org/draft-04/schema#",
3   "type": "object",
4   "properties": {
5     "simulatorParams": {
6       "type": "object",
7       "properties": {
8         "vesServerUrl": {
9           "type": "string"
10         },
11         "testDuration": {
12           "type": "string"
13         },
14         "messageInterval": {
15           "type": "string"
16         }
17       },
18       "required": [
19         "vesServerUrl",
20         "testDuration",
21         "messageInterval"
22       ]
23     },
24     "commonEventHeaderParams": {
25       "type": "object",
26       "properties": {
27         "eventName": {
28           "type": "string"
29         },
30         "nfNamingCode": {
31           "type": "string"
32         },
33         "nfcNamingCode": {
34           "type": "string"
35         },
36         "sourceName": {
37           "type": "string"
38         },
39         "sourceId": {
40           "type": "string"
41         },
42         "reportingEntityName": {
43           "type": "string"
44         }
45       },
46       "required": [
47         "eventName",
48         "sourceName",
49         "sourceId",
50         "reportingEntityName"
51       ]
52     },
53
54
55     "pnfRegistrationParams": {
56       "type": "object",
57       "properties": {
58         "serialNumber": {
59           "type": "string"
60         },
61         "vendorName": {
62           "type": "string"
63         },
64         "oamV4IpAddress": {
65           "type": "string"
66         },
67         "oamV6IpAddress": {
68           "type": "string"
69         },
70         "unitFamily": {
71           "type": "string"
72         },
73         "modelNumber": {
74           "type": "string"
75         },
76         "softwareVersion": {
77           "type": "string"
78         },
79         "unitType": {
80           "type": "string"
81         }
82       },
83       "required": [
84         "serialNumber",
85         "vendorName",
86         "oamV4IpAddress",
87         "oamV6IpAddress",
88         "unitFamily",
89         "modelNumber",
90         "softwareVersion",
91         "unitType"
92       ]
93     },
94     "notificationParams": {
95       "type": "object",
96       "properties": {
97         "changeIdentifier": {
98           "type": "string"
99         },
100         "changeType": {
101           "type": "string"
102         },
103         "arrayOfNamedHashMap": {
104           "type": "array",
105           "items": [
106             {
107               "type": "object",
108               "properties": {
109                 "name": {
110                   "type": "string"
111                 },
112                 "hashMap": {
113                   "type": "object",
114                   "properties": {
115                     "location": {
116                       "type": "string"
117                     },
118                     "compression": {
119                       "type": "string"
120                     },
121                     "fileFormatType": {
122                       "type": "string"
123                     },
124                     "fileFormatVersion": {
125                       "type": "string"
126                     }
127                   },
128                   "required": [
129                     "location",
130                     "compression",
131                     "fileFormatType",
132                     "fileFormatVersion"
133                   ]
134                 }
135               },
136               "required": [
137                 "name",
138                 "hashMap"
139               ]
140             },
141             {
142               "type": "object",
143               "properties": {
144                 "name": {
145                   "type": "string"
146                 },
147                 "hashMap": {
148                   "type": "object",
149                   "properties": {
150                     "location": {
151                       "type": "string"
152                     },
153                     "compression": {
154                       "type": "string"
155                     },
156                     "fileFormatType": {
157                       "type": "string"
158                     },
159                     "fileFormatVersion": {
160                       "type": "string"
161                     }
162                   },
163                   "required": [
164                     "location",
165                     "compression",
166                     "fileFormatType",
167                     "fileFormatVersion"
168                   ]
169                 }
170               },
171               "required": [
172                 "name",
173                 "hashMap"
174               ]
175             }
176           ]
177         }
178       },
179       "required": [
180         "changeIdentifier",
181         "changeType",
182         "arrayOfNamedHashMap"
183       ]
184     }
185   },
186
187   "oneOf": [
188     {
189       "required": [
190         "simulatorParams",
191         "commonEventHeaderParams",
192         "pnfRegistrationParams"
193       ]
194     },
195     {
196       "required": [
197         "simulatorParams",
198         "commonEventHeaderParams",
199         "notificationParams"
200       ]
201     }
202   ]
203
204
205 }