32b7becd059506fd82e979d14be2462402e5cf44
[cps.git] /
1 {
2   "$schema": "https://json-schema.org/draft/2019-09/schema",
3   "$id": "urn:cps:org.onap.cps.ncmp.events:ncmp-async-request-response-event-schema:v1",
4   "$ref": "#/definitions/NcmpAsyncRequestResponseEvent",
5   "definitions": {
6     "NcmpAsyncRequestResponseEvent": {
7       "description": "The payload for CPS async request response event.",
8       "type": "object",
9       "javaType" : "org.onap.cps.ncmp.event.model.NcmpAsyncRequestResponseEvent",
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         "event": {
40         "$ref": "#/definitions/Event"
41         },
42         "forwardedEvent": {
43           "$ref": "#/definitions/Forwarded-Event"
44         }
45       },
46       "required": [
47         "eventId",
48         "eventCorrelationId",
49         "eventTime",
50         "eventTarget",
51         "eventType",
52         "eventSchema",
53         "eventSchemaVersion"
54       ]
55     },
56     "Forwarded-Event": {
57       "description": "The event content.",
58       "type": "object",
59       "properties": {
60         "eventId": {
61           "description": "The unique id identifying the event generated by DMI.",
62           "type": "string"
63         },
64         "eventCorrelationId": {
65           "description": "The request id passed by NCMP.",
66           "type": "string"
67         },
68         "eventTime": {
69           "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.",
70           "type": "string"
71         },
72         "eventTarget": {
73           "description": "The target of the event.",
74           "type": "string"
75         },
76         "eventType": {
77           "description": "The type of the event.",
78           "type": "string"
79         },
80         "eventSchema": {
81           "description": "The event schema for async request response events.",
82           "type": "string"
83         },
84         "eventSchemaVersion": {
85           "description": "The event schema version for async request response events.",
86           "type": "string"
87         },
88         "eventSource": {
89           "description": "The source of the event.",
90           "type": "string"
91         },
92         "response-data-schema": {
93           "description": "The received schema of response data",
94           "type": "string"
95         },
96         "response-status": {
97           "description": "The received status of the response.",
98           "type": "string"
99         },
100         "response-code": {
101           "description": "The received code of the response.",
102           "type": "string"
103         },
104         "forwardedEventData": {
105           "description": "The data payload",
106           "type": "object",
107           "properties": {
108             "forwardedEventPayload": {
109               "type": "object"
110             }
111           }
112         },
113         "required": [
114           "eventId",
115           "eventCorrelationId",
116           "eventTime",
117           "eventTarget",
118           "eventType",
119           "eventSchema",
120           "eventSchemaVersion",
121           "eventSource",
122           "response-data-schema",
123           "response-status",
124           "response-code",
125           "forwardedEventData"
126         ]
127       }
128     },
129     "Event": {
130       "description": "The event content.",
131       "type": "object",
132       "properties": {
133         "eventId": {
134           "description": "The unique id identifying the event generated by DMI",
135           "type": "string"
136         },
137         "eventCorrelationId": {
138           "description": "The request id passed by NCMP.",
139           "type": "string"
140         },
141         "eventTime": {
142           "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.",
143           "type": "string"
144         },
145         "eventTarget": {
146           "description": "The target of the event.",
147           "type": "string"
148         },
149         "eventType": {
150           "description": "The type of the event.",
151           "type": "string"
152         },
153         "eventSchema": {
154           "description": "The event schema for async request response events.",
155           "type": "string"
156         },
157         "eventSource": {
158           "description": "The source of the event.",
159           "type": "string"
160         },
161         "response-data-schema": {
162           "description": "The received schema of response data",
163           "type": "string"
164         },
165         "response-status": {
166           "description": "The received status of the response.",
167           "type": "string"
168         },
169         "response-code": {
170           "description": "The received code of the response.",
171           "type": "string"
172         },
173         "response-data": {
174           "description": "The data payload",
175           "type": "object",
176           "properties": {
177             "payload": {
178               "type": "object"
179             }
180           }
181         },
182         "required": [
183           "eventId",
184           "eventCorrelationId",
185           "eventTarget",
186           "eventTime",
187           "eventType",
188           "eventSchema",
189           "eventSource",
190           "response-data-schema",
191           "response-status",
192           "response-code",
193           "event-data"
194         ]
195       }
196     }
197   }
198 }