From b0c7b0e43956ef48011c95b2689578acbfd9282f Mon Sep 17 00:00:00 2001 From: sourabh_sourabh Date: Wed, 31 Jul 2024 17:19:19 +0100 Subject: Updating CM Data Notification Event Schema - Updated "avc-event-schema" value attribute to accept type object. - Modified cm avc event consumer to not wrap received event into another cloud event using "CloudEventBuilder.from" Issue-ID: CPS-2299 Change-Id: I3b2acd53a3939d992b337e98debb7f62f3a528dd Signed-off-by: sourabh_sourabh --- .../schemas/dmidataavc/avc-event-schema-1.0.0.json | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) (limited to 'cps-ncmp-events/src') diff --git a/cps-ncmp-events/src/main/resources/schemas/dmidataavc/avc-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/dmidataavc/avc-event-schema-1.0.0.json index a5bed939bf..474520d142 100644 --- a/cps-ncmp-events/src/main/resources/schemas/dmidataavc/avc-event-schema-1.0.0.json +++ b/cps-ncmp-events/src/main/resources/schemas/dmidataavc/avc-event-schema-1.0.0.json @@ -16,7 +16,8 @@ "type": "string" }, "value": { - "$ref": "#/definitions/Value" + "type": "object", + "existingJavaType": "java.lang.Object" } }, "required": [ @@ -25,25 +26,6 @@ "target" ] }, - "Value": { - "type": "object", - "additionalProperties": false, - "properties": { - "attributes": { - "type": "array", - "items": { - "type": "object", - "existingJavaType": "java.util.Map", - "additionalProperties": false, - "properties": { - "isHoAllowed": { - "type": "boolean" - } - } - } - } - } - }, "AvcEvent": { "description": "The payload for AVC event.", "type": "object", -- cgit 1.2.3-korg