summaryrefslogtreecommitdiffstats
path: root/cps-ncmp-events/src
diff options
context:
space:
mode:
authormpriyank <priyank.maheshwari@est.tech>2022-06-10 12:09:20 +0100
committermpriyank <priyank.maheshwari@est.tech>2022-06-15 10:17:40 +0100
commitf174640d9aebe8b962de651d954243f434cc5eab (patch)
treeb24d1d7f9393211e25efc5d0ea317a4e5be7a6b0 /cps-ncmp-events/src
parent708d2b566a8b8cdf48e1dfe337369c946cec0e02 (diff)
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 <priyank.maheshwari@est.tech>
Diffstat (limited to 'cps-ncmp-events/src')
-rw-r--r--cps-ncmp-events/src/main/resources/schemas/ncmp-event-schema-v1.json6
1 files changed, 2 insertions, 4 deletions
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"