Update pnfsimulator config
[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         "unitFamily": {
65           "type": "string"
66         },
67         "modelNumber": {
68           "type": "string"
69         },
70         "softwareVersion": {
71           "type": "string"
72         },
73         "unitType": {
74           "type": "string"
75         },
76         "additionalFields": {
77           "type": "object"
78         }
79       }
80     },
81     "notificationParams": {
82       "type": "object",
83       "properties": {
84         "changeIdentifier": {
85           "type": "string"
86         },
87         "changeType": {
88           "type": "string"
89         },
90         "arrayOfNamedHashMap": {
91           "type": "array",
92           "items": [
93             {
94               "type": "object",
95               "properties": {
96                 "name": {
97                   "type": "string"
98                 },
99                 "hashMap": {
100                   "type": "object",
101                   "properties": {
102                     "location": {
103                       "type": "string"
104                     },
105                     "compression": {
106                       "type": "string"
107                     },
108                     "fileFormatType": {
109                       "type": "string"
110                     },
111                     "fileFormatVersion": {
112                       "type": "string"
113                     }
114                   },
115                   "required": [
116                     "location",
117                     "compression",
118                     "fileFormatType",
119                     "fileFormatVersion"
120                   ]
121                 }
122               },
123               "required": [
124                 "name",
125                 "hashMap"
126               ]
127             },
128             {
129               "type": "object",
130               "properties": {
131                 "name": {
132                   "type": "string"
133                 },
134                 "hashMap": {
135                   "type": "object",
136                   "properties": {
137                     "location": {
138                       "type": "string"
139                     },
140                     "compression": {
141                       "type": "string"
142                     },
143                     "fileFormatType": {
144                       "type": "string"
145                     },
146                     "fileFormatVersion": {
147                       "type": "string"
148                     }
149                   },
150                   "required": [
151                     "location",
152                     "compression",
153                     "fileFormatType",
154                     "fileFormatVersion"
155                   ]
156                 }
157               },
158               "required": [
159                 "name",
160                 "hashMap"
161               ]
162             }
163           ]
164         }
165       },
166       "required": [
167         "changeIdentifier",
168         "changeType",
169         "arrayOfNamedHashMap"
170       ]
171     }
172   },
173
174   "oneOf": [
175     {
176       "required": [
177         "simulatorParams",
178         "commonEventHeaderParams",
179         "pnfRegistrationParams"
180       ]
181     },
182     {
183       "required": [
184         "simulatorParams",
185         "commonEventHeaderParams",
186         "notificationParams"
187       ]
188     }
189   ]
190
191
192 }