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