Fix test-deregistration script
[cps.git] / cps-ncmp-events / src / main / resources / schemas / dmidataavc / avc-event-schema-1.0.0.json
1 {
2   "$schema": "https://json-schema.org/draft/2019-09/schema",
3   "$id": "urn:cps:org.onap.cps.ncmp.events:avc-event-schema:1.0.0",
4   "$ref": "#/definitions/AvcEvent",
5   "definitions": {
6     "Edit": {
7       "additionalProperties": false,
8       "properties": {
9         "edit-id": {
10           "type": "string"
11         },
12         "operation": {
13           "type": "string"
14         },
15         "target": {
16           "type": "string"
17         },
18         "value": {
19           "$ref": "#/definitions/Value"
20         }
21       },
22       "required": [
23         "edit-id",
24         "operation",
25         "target"
26       ]
27     },
28     "Value": {
29       "type": "object",
30       "additionalProperties": false,
31       "properties": {
32         "attributes": {
33           "type": "array",
34           "items": {
35             "type": "object",
36             "existingJavaType": "java.util.Map<String,Object>",
37             "additionalProperties": false,
38             "properties": {
39               "isHoAllowed": {
40                 "type": "boolean"
41               }
42             }
43           }
44         }
45       }
46     },
47     "AvcEvent": {
48       "description": "The payload for AVC event.",
49       "type": "object",
50       "javaType": "org.onap.cps.ncmp.events.avc1_0_0.AvcEvent",
51       "properties": {
52         "data": {
53           "description": "The AVC event content compliant with RFC8641 format",
54           "type": "object",
55           "additionalProperties": false,
56           "properties": {
57             "push-change-update": {
58               "type": "object",
59               "additionalProperties": false,
60               "properties": {
61                 "datastore-changes": {
62                   "type": "object",
63                   "additionalProperties": false,
64                   "properties": {
65                     "ietf-yang-patch:yang-patch": {
66                       "type": "object",
67                       "additionalProperties": false,
68                       "properties": {
69                         "patch-id": {
70                           "type": "string"
71                         },
72                         "edit": {
73                           "type": "array",
74                           "items": {
75                             "$ref": "#/definitions/Edit"
76                           }
77                         }
78                       },
79                       "required": [
80                         "patch-id",
81                         "edit"
82                       ]
83                     }
84                   },
85                   "required": [
86                     "ietf-yang-patch:yang-patch"
87                   ]
88                 }
89               },
90               "required": [
91                 "datastore-changes"
92               ]
93             }
94           },
95           "required": [
96             "push-change-update"
97           ]
98         }
99       },
100       "required": [
101         "data"
102       ],
103       "additionalProperties": false
104     }
105   }
106 }