Merge "switch drools pdp image to new one"
[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         "additionalFields": {
83           "type": "object"
84         }
85       }
86     },
87     "notificationParams": {
88       "type": "object",
89       "properties": {
90         "changeIdentifier": {
91           "type": "string"
92         },
93         "changeType": {
94           "type": "string"
95         },
96         "arrayOfNamedHashMap": {
97           "type": "array",
98           "items": [
99             {
100               "type": "object",
101               "properties": {
102                 "name": {
103                   "type": "string"
104                 },
105                 "hashMap": {
106                   "type": "object",
107                   "properties": {
108                     "location": {
109                       "type": "string"
110                     },
111                     "compression": {
112                       "type": "string"
113                     },
114                     "fileFormatType": {
115                       "type": "string"
116                     },
117                     "fileFormatVersion": {
118                       "type": "string"
119                     }
120                   },
121                   "required": [
122                     "location",
123                     "compression",
124                     "fileFormatType",
125                     "fileFormatVersion"
126                   ]
127                 }
128               },
129               "required": [
130                 "name",
131                 "hashMap"
132               ]
133             },
134             {
135               "type": "object",
136               "properties": {
137                 "name": {
138                   "type": "string"
139                 },
140                 "hashMap": {
141                   "type": "object",
142                   "properties": {
143                     "location": {
144                       "type": "string"
145                     },
146                     "compression": {
147                       "type": "string"
148                     },
149                     "fileFormatType": {
150                       "type": "string"
151                     },
152                     "fileFormatVersion": {
153                       "type": "string"
154                     }
155                   },
156                   "required": [
157                     "location",
158                     "compression",
159                     "fileFormatType",
160                     "fileFormatVersion"
161                   ]
162                 }
163               },
164               "required": [
165                 "name",
166                 "hashMap"
167               ]
168             }
169           ]
170         }
171       },
172       "required": [
173         "changeIdentifier",
174         "changeType",
175         "arrayOfNamedHashMap"
176       ]
177     }
178   },
179
180   "oneOf": [
181     {
182       "required": [
183         "simulatorParams",
184         "commonEventHeaderParams",
185         "pnfRegistrationParams"
186       ]
187     },
188     {
189       "required": [
190         "simulatorParams",
191         "commonEventHeaderParams",
192         "notificationParams"
193       ]
194     }
195   ]
196
197
198 }