blob: a3eaf63fa41ac51bd10f531a9b8e5a37688b8b05 [file] [log] [blame]
rajesh.kumar0cea8182024-02-05 19:07:11 +05301{
2 "$schema": "https://json-schema.org/draft/2019-09/schema",
3 "$id": "urn:cps:org.onap.cps:data-updated-event-schema:1.0.0",
4 "$ref": "#/definitions/CpsDataUpdatedEvent",
5 "definitions": {
6 "CpsDataUpdatedEvent": {
7 "description": "The payload for CPS data updated event.",
8 "type": "object",
9 "javaType": "org.onap.cps.events.model.CpsDataUpdatedEvent",
10 "properties": {
11 "data": {
12 "type": "object",
13 "properties": {
14 "observedTimestamp": {
rajesh.kumareb3a8082024-02-23 20:29:59 +053015 "description": "The timestamp when the data has been observed. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'. Ex: '2024-02-12T09:35:46.143+0530' ",
rajesh.kumar0cea8182024-02-05 19:07:11 +053016 "type": "string"
17 },
18 "dataspaceName": {
19 "description": "The name of CPS Core dataspace the data belongs to.",
20 "type": "string"
21 },
22 "schemaSetName": {
23 "description": "The name of CPS Core schema set the data adheres to.",
24 "type": "string"
25 },
26 "anchorName": {
27 "description": "The name of CPS Core anchor the data is attached to.",
28 "type": "string"
29 },
30 "operation": {
31 "description": "The operation on the data",
32 "type": "string",
33 "enum": [
34 "CREATE",
35 "UPDATE",
36 "DELETE"
37 ]
38 },
39 "xpath": {
40 "description": "xpath of the updated content",
41 "type": "string"
42 }
43 },
44 "required": [
45 "observedTimestamp",
46 "dataspaceName",
47 "schemaSetName",
48 "anchorName",
49 "operation",
50 "xpath"
51 ],
52 "additionalProperties": false
53 }
54 },
55 "additionalProperties": false,
56 "required": [
57 "data"
58 ]
59 }
60 }
61}