blob: a5bed939bf215047a5c4693b50a05b011b873574 [file] [log] [blame]
mpriyank87f0b002023-05-04 11:24:29 +01001{
2 "$schema": "https://json-schema.org/draft/2019-09/schema",
mpriyank30322612023-06-16 15:55:52 +01003 "$id": "urn:cps:org.onap.cps.ncmp.events:avc-event-schema:1.0.0",
mpriyank87f0b002023-05-04 11:24:29 +01004 "$ref": "#/definitions/AvcEvent",
5 "definitions": {
mpriyankacae85f2023-05-18 14:56:07 +01006 "Edit": {
mpriyankacae85f2023-05-18 14:56:07 +01007 "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 },
mpriyank87f0b002023-05-04 11:24:29 +010047 "AvcEvent": {
48 "description": "The payload for AVC event.",
49 "type": "object",
mpriyank30322612023-06-16 15:55:52 +010050 "javaType": "org.onap.cps.ncmp.events.avc1_0_0.AvcEvent",
mpriyank87f0b002023-05-04 11:24:29 +010051 "properties": {
mpriyank30322612023-06-16 15:55:52 +010052 "data": {
mpriyankacae85f2023-05-18 14:56:07 +010053 "description": "The AVC event content compliant with RFC8641 format",
mpriyank87f0b002023-05-04 11:24:29 +010054 "type": "object",
mpriyankacae85f2023-05-18 14:56:07 +010055 "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 ]
mpriyank87f0b002023-05-04 11:24:29 +010098 }
99 },
100 "required": [
mpriyank30322612023-06-16 15:55:52 +0100101 "data"
mpriyank87f0b002023-05-04 11:24:29 +0100102 ],
103 "additionalProperties": false
104 }
105 }
106}