Code Review
/
cps.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade event schema to support delete operation
[cps.git]
/
cps-events
/
src
/
main
/
resources
/
schemas
/
cps-data-updated-event-schema.json
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
95dc605
..
3c95664
100644
(file)
--- 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",
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
- "$id": "urn:cps:org.onap.cps:data-updated-event-schema:v
1
",
+ "$id": "urn:cps:org.onap.cps:data-updated-event-schema:v
2
",
"$ref": "#/definitions/CpsDataUpdatedEvent",
"$ref": "#/definitions/CpsDataUpdatedEvent",
@@
-40,7
+40,7
@@
"type",
"content"
],
"type",
"content"
],
- "additionalProperties":
fals
e
+ "additionalProperties":
tru
e
},
"Content": {
},
"Content": {
@@
-63,6
+63,11
@@
"description": "The name of CPS Core anchor the data is attached to.",
"type": "string"
},
"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"
}
"data": {
"$ref": "#/definitions/Data"
}
@@
-71,10
+76,9
@@
"observedTimestamp",
"dataspaceName",
"schemaSetName",
"observedTimestamp",
"dataspaceName",
"schemaSetName",
- "anchorName",
- "data"
+ "anchorName"
],
],
- "additionalProperties":
fals
e
+ "additionalProperties":
tru
e
},
"Data": {
},
"Data": {