...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "definitions": { ... "Content": { "properties": { "operation": { "description": "The operation supported by the ", "type": "string", "enum": ["CREATE", "UPDATE", "DELETE"] } ... } } } } |
Optional Data field
...
The existing 'data' section in the content should not be provided in the delete event and it should be marked as optional. As we are deleting a mandatory field, the change is still backwards compatible.
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "schema": "urn:cps:org.onap.cps:data-updated-event-schema:v1v2", "id": "77b8f114-4562-4069-8234-6d059ff742ac", "source": "urn:cps:org.onap.cps", "type": "org.onap.cps.data-updated-event", "content": { "observedTimestamp": "2020-12-01T00:00:00.000+0000", "dataspaceName": "my-dataspace", "schemaSetName": "bookstore-schemaset", "anchorName": "chapters", "operation": "DELETE" } } |
...