aboutsummaryrefslogtreecommitdiffstats
path: root/cps-events/src/main/resources/schemas
diff options
context:
space:
mode:
authorRenu Kumari <renu.kumari@bell.ca>2021-12-06 12:37:10 -0500
committerRenu Kumari <renu.kumari@bell.ca>2021-12-07 17:54:44 +0000
commita51102bd77465a85e41069d9c0f067adbe51f379 (patch)
tree988709f6a29fd68f2399b667a674fa947ceb160d /cps-events/src/main/resources/schemas
parent60feed1cac9ffdd011d10e4fce65367af6520fc8 (diff)
Upgrade event schema to support delete operation
Issue-ID: CPS-789 Signed-off-by: Renu Kumari <renu.kumari@bell.ca> Change-Id: I2625f0cc068618bea820ad9503ee75c5a7ae4c5f
Diffstat (limited to 'cps-events/src/main/resources/schemas')
-rw-r--r--cps-events/src/main/resources/schemas/cps-data-updated-event-schema.json14
1 files changed, 9 insertions, 5 deletions
diff --git a/cps-events/src/main/resources/schemas/cps-data-updated-event-schema.json b/cps-events/src/main/resources/schemas/cps-data-updated-event-schema.json
index 95dc605da4..3c95664d7a 100644
--- a/cps-events/src/main/resources/schemas/cps-data-updated-event-schema.json
+++ b/cps-events/src/main/resources/schemas/cps-data-updated-event-schema.json
@@ -1,7 +1,7 @@
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
- "$id": "urn:cps:org.onap.cps:data-updated-event-schema:v1",
+ "$id": "urn:cps:org.onap.cps:data-updated-event-schema:v2",
"$ref": "#/definitions/CpsDataUpdatedEvent",
@@ -40,7 +40,7 @@
"type",
"content"
],
- "additionalProperties": false
+ "additionalProperties": true
},
"Content": {
@@ -63,6 +63,11 @@
"description": "The name of CPS Core anchor the data is attached to.",
"type": "string"
},
+ "operation": {
+ "description": "The operation on the data",
+ "type": "string",
+ "enum": ["CREATE", "UPDATE", "DELETE"]
+ },
"data": {
"$ref": "#/definitions/Data"
}
@@ -71,10 +76,9 @@
"observedTimestamp",
"dataspaceName",
"schemaSetName",
- "anchorName",
- "data"
+ "anchorName"
],
- "additionalProperties": false
+ "additionalProperties": true
},
"Data": {