From f174640d9aebe8b962de651d954243f434cc5eab Mon Sep 17 00:00:00 2001 From: mpriyank Date: Fri, 10 Jun 2022 12:09:20 +0100 Subject: NcmpEvent creation and Mapping - Mapping class to create header and event payload based on type of operation i.e CREATE, UPDATE and DELETE. - Service class to get CmHandle public properties, create event and delegate request to event publisher. - Modification in NcmpEvent schema json to mark field as String instead of URI - Test scenarios - UPCOMING: Call the service method from relevant code to actually publish the event. Issue-ID: CPS-1037 Change-Id: I6bb7de4b27e602c4d8ee6a5528a866e5f7e8799a Signed-off-by: mpriyank --- .../src/main/resources/schemas/ncmp-event-schema-v1.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cps-ncmp-events') diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json b/cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json index 84fc12edbd..4ddffea56a 100644 --- a/cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json @@ -26,8 +26,7 @@ }, "eventSource": { "description": "The source of the event.", - "type": "string", - "format": "uri" + "type": "string" }, "eventType": { "description": "The type of the event.", @@ -35,8 +34,7 @@ }, "eventSchema": { "description": "The schema, including its version, that this event adheres to.", - "type": "string", - "format": "uri" + "type": "string" }, "event": { "$ref": "#/definitions/Event" -- cgit 1.2.3-korg