blob: 474520d142212da5b4ffeeeed2c9f1a675dd30be [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": {
sourabh_sourabhb0c7b0e2024-07-31 17:19:19 +010019 "type": "object",
20 "existingJavaType": "java.lang.Object"
mpriyankacae85f2023-05-18 14:56:07 +010021 }
22 },
23 "required": [
24 "edit-id",
25 "operation",
26 "target"
27 ]
28 },
mpriyank87f0b002023-05-04 11:24:29 +010029 "AvcEvent": {
30 "description": "The payload for AVC event.",
31 "type": "object",
mpriyank30322612023-06-16 15:55:52 +010032 "javaType": "org.onap.cps.ncmp.events.avc1_0_0.AvcEvent",
mpriyank87f0b002023-05-04 11:24:29 +010033 "properties": {
mpriyank30322612023-06-16 15:55:52 +010034 "data": {
mpriyankacae85f2023-05-18 14:56:07 +010035 "description": "The AVC event content compliant with RFC8641 format",
mpriyank87f0b002023-05-04 11:24:29 +010036 "type": "object",
mpriyankacae85f2023-05-18 14:56:07 +010037 "additionalProperties": false,
38 "properties": {
39 "push-change-update": {
40 "type": "object",
41 "additionalProperties": false,
42 "properties": {
43 "datastore-changes": {
44 "type": "object",
45 "additionalProperties": false,
46 "properties": {
47 "ietf-yang-patch:yang-patch": {
48 "type": "object",
49 "additionalProperties": false,
50 "properties": {
51 "patch-id": {
52 "type": "string"
53 },
54 "edit": {
55 "type": "array",
56 "items": {
57 "$ref": "#/definitions/Edit"
58 }
59 }
60 },
61 "required": [
62 "patch-id",
63 "edit"
64 ]
65 }
66 },
67 "required": [
68 "ietf-yang-patch:yang-patch"
69 ]
70 }
71 },
72 "required": [
73 "datastore-changes"
74 ]
75 }
76 },
77 "required": [
78 "push-change-update"
79 ]
mpriyank87f0b002023-05-04 11:24:29 +010080 }
81 },
82 "required": [
mpriyank30322612023-06-16 15:55:52 +010083 "data"
mpriyank87f0b002023-05-04 11:24:29 +010084 ],
85 "additionalProperties": false
86 }
87 }
88}