blob: 2340a4bc4ccdeabed607969298e12a0584843262 [file] [log] [blame]
JosephKeenanf31c7f82022-05-24 18:59:25 +01001{
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 "properties": {
10 "eventId": {
11 "description": "The unique id identifying the event generated by DMI.",
12 "type": "string"
13 },
14 "eventCorrelationId": {
15 "description": "The request id passed by NCMP.",
16 "type": "string"
17 },
18 "eventTime": {
19 "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.",
20 "type": "string"
21 },
22 "eventTarget": {
23 "description": "The target of the event.",
24 "type": "string"
25 },
26 "eventType": {
27 "description": "The type of the event.",
28 "type": "string"
29 },
30 "eventSchema": {
31 "description": "The event schema for async request response events.",
32 "type": "string"
33 },
mpriyank3689a922022-08-23 17:22:46 +010034 "eventSchemaVersion": {
35 "description": "The event schema version for async request response events.",
36 "type": "string"
37 },
JosephKeenanf31c7f82022-05-24 18:59:25 +010038 "eventSource": {
39 "description": "The source of the event.",
40 "type": "string"
41 },
42 "eventContent": {
43 "$ref": "#/definitions/Event-Content"
44 }
45 },
46 "required": [
47 "eventId",
48 "eventCorrelationId",
49 "eventTime",
50 "eventTarget",
51 "eventType",
52 "eventSchema",
mpriyank3689a922022-08-23 17:22:46 +010053 "eventSchemaVersion",
JosephKeenanf31c7f82022-05-24 18:59:25 +010054 "eventSource",
55 "eventContent"
56 ]
57 },
58 "Event-Content": {
59 "description": "The event content.",
60 "type": "object",
61 "properties": {
62 "response-data-schema": {
63 "description": "The schema of response data",
64 "type": "string"
65 },
66 "response-status": {
67 "description": "The status of the response.",
68 "type": "string"
69 },
70 "response-code": {
71 "description": "The code of the response.",
72 "type": "string"
73 },
74 "response-data": {
75 "description": "The data payload",
76 "type": "object",
77 "properties": {
78 "payload": {
79 "type": "object"
80 }
81 }
82 },
83 "required": [
84 "response-data-schema",
85 "response-status",
86 "response-code",
87 "response-data"
88 ]
89 }
90 }
91 }
92}