Upgrade event schema to support delete operation
[cps.git] / cps-events / src / test / resources / event-v2-create-operation.json
1 {
2   "schema": "urn:cps:org.onap.cps:data-updated-event-schema:v2",
3   "id": "77b8f114-4562-4069-8234-6d059ff742ac",
4   "source": "urn:cps:org.onap.cps",
5   "type": "org.onap.cps.data-updated-event",
6   "content": {
7     "observedTimestamp": "2020-12-01T00:00:00.000+0000",
8     "dataspaceName": "my-dataspace",
9     "schemaSetName": "bookstore-schemaset",
10     "anchorName": "chapters",
11     "operation" : "CREATE",
12     "data": {
13       "test:bookstore":{
14         "bookstore-name": "Chapters",
15         "categories": [
16           {
17             "code": "01",
18             "name": "SciFi",
19             "books": [
20               {
21                 "authors": [
22                   "Iain M. Banks"
23                 ],
24                 "lang": "en",
25                 "price": 895,
26                 "pub_year": "1994",
27                 "title": "Feersum Endjinn"
28               }
29             ]
30           }
31         ]
32       }
33     }
34   }
35 }
36