diff options
author | rajesh.kumar <rk00747546@techmahindra.com> | 2024-02-05 19:07:11 +0530 |
---|---|---|
committer | rajesh.kumar <rk00747546@techmahindra.com> | 2024-02-09 11:08:45 +0530 |
commit | 0cea818c07759201bf136bf65a8472f1de687bac (patch) | |
tree | 0f1526a986f53d53398d551f55a58b3ba22702f6 /cps-events/src/main/resources/schemas/updatenode/cps-data-updated-event-schema-1.0.0.json | |
parent | c45db42e7fca53873282aa8f4cff533ef1bdc0de (diff) |
Create schemas for notification service in cps-core
Add schema files for notification service
Issue-ID:CPS-2066
Change-Id: I56c34400dc73c71b936a51260efd230205abbacd
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
Diffstat (limited to 'cps-events/src/main/resources/schemas/updatenode/cps-data-updated-event-schema-1.0.0.json')
-rw-r--r-- | cps-events/src/main/resources/schemas/updatenode/cps-data-updated-event-schema-1.0.0.json | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/cps-events/src/main/resources/schemas/updatenode/cps-data-updated-event-schema-1.0.0.json b/cps-events/src/main/resources/schemas/updatenode/cps-data-updated-event-schema-1.0.0.json new file mode 100644 index 0000000000..18f83ccf86 --- /dev/null +++ b/cps-events/src/main/resources/schemas/updatenode/cps-data-updated-event-schema-1.0.0.json @@ -0,0 +1,61 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps:data-updated-event-schema:1.0.0", + "$ref": "#/definitions/CpsDataUpdatedEvent", + "definitions": { + "CpsDataUpdatedEvent": { + "description": "The payload for CPS data updated event.", + "type": "object", + "javaType": "org.onap.cps.events.model.CpsDataUpdatedEvent", + "properties": { + "data": { + "type": "object", + "properties": { + "observedTimestamp": { + "description": "The timestamp when the data has been observed. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'. Ex: '2020-12-01T00:00:00.000+0000' ", + "type": "string" + }, + "dataspaceName": { + "description": "The name of CPS Core dataspace the data belongs to.", + "type": "string" + }, + "schemaSetName": { + "description": "The name of CPS Core schema set the data adheres to.", + "type": "string" + }, + "anchorName": { + "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" + ] + }, + "xpath": { + "description": "xpath of the updated content", + "type": "string" + } + }, + "required": [ + "observedTimestamp", + "dataspaceName", + "schemaSetName", + "anchorName", + "operation", + "xpath" + ], + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "data" + ] + } + } +} |