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