4db07bec95b1ab1b497e893905375676da15d115
[cps.git] /
1 {
2   "$schema": "https://json-schema.org/draft/2019-09/schema",
3   "$id": "urn:cps:org.onap.cps.ncmp.events:dmi-async-request-response-event-schema:v1",
4   "$ref": "#/definitions/DmiAsyncRequestResponseEvent",
5   "definitions": {
6     "DmiAsyncRequestResponseEvent": {
7       "description": "The payload for NCMP async request response event.",
8       "type": "object",
9       "javaType" : "org.onap.cps.ncmp.event.model.DmiAsyncRequestResponseEvent",
10       "properties": {
11         "eventId": {
12           "description": "The unique id identifying the event generated by DMI.",
13           "type": "string"
14         },
15         "eventCorrelationId": {
16           "description": "The request id passed by NCMP.",
17           "type": "string"
18         },
19         "eventTime": {
20           "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.",
21           "type": "string"
22         },
23         "eventTarget": {
24           "description": "The target of the event.",
25           "type": "string"
26         },
27         "eventType": {
28           "description": "The type of the event.",
29           "type": "string"
30         },
31         "eventSchema": {
32           "description": "The event schema for async request response events.",
33           "type": "string"
34         },
35         "eventSchemaVersion": {
36           "description": "The event schema version for async request response events.",
37           "type": "string"
38         },
39         "eventSource": {
40           "description": "The source of the event.",
41           "type": "string"
42         },
43         "eventContent": {
44           "$ref": "#/definitions/Event-Content"
45         }
46       },
47       "required": [
48         "eventId",
49         "eventCorrelationId",
50         "eventTime",
51         "eventTarget",
52         "eventType",
53         "eventSchema",
54         "eventSchemaVersion",
55         "eventSource",
56         "eventContent"
57       ]
58     },
59     "Event-Content": {
60       "description": "The event content.",
61       "type": "object",
62       "properties": {
63         "response-data-schema": {
64           "description": "The schema of response data",
65           "type": "string"
66         },
67         "response-status": {
68           "description": "The status of the response.",
69           "type": "string"
70         },
71         "response-code": {
72           "description": "The code of the response.",
73           "type": "string"
74         },
75         "response-data": {
76           "description": "The data payload",
77           "type": "object",
78           "properties": {
79             "payload": {
80               "type": "object"
81             }
82           }
83         },
84         "required": [
85           "response-data-schema",
86           "response-status",
87           "response-code",
88           "response-data"
89         ]
90       }
91     }
92   }
93 }