blob: ebbdde93186a8f8e400601dc989465028f806ac9 [file] [log] [blame]
seanbeirneddeaf092023-06-21 10:42:14 +01001{
2 "$schema": "https://json-schema.org/draft/2019-09/schema",
mpriyank2fe802a2023-08-08 15:27:18 +01003 "$id": "urn:cps:org.onap.cps.ncmp.events:cm-subscription-dmi-out-event-schema:1.0.0",
4 "$ref": "#/definitions/CmSubscriptionDmiOutEvent",
seanbeirneddeaf092023-06-21 10:42:14 +01005 "definitions": {
6 "SubscriptionStatus": {
7 "description": "The subscription status information",
8 "type": "object",
9 "properties": {
10 "id": {
11 "type": "string"
12 },
13 "status" : {
14 "type": "string",
15 "enum": [
16 "ACCEPTED",
mpriyank2640b912023-08-10 23:09:38 +010017 "REJECTED"
seanbeirneddeaf092023-06-21 10:42:14 +010018 ]
19 },
20 "details" : {
21 "type": "string"
22 }
23 },
24 "required": [
25 "id",
26 "status"
27 ],
28 "additionalProperties": false
29 },
mpriyank2fe802a2023-08-08 15:27:18 +010030 "CmSubscriptionDmiOutEvent" : {
seanbeirneddeaf092023-06-21 10:42:14 +010031 "description": "The payload for subscription response event.",
32 "type": "object",
mpriyank2fe802a2023-08-08 15:27:18 +010033 "javaType": "org.onap.cps.ncmp.events.cmsubscription1_0_0.dmi_to_ncmp.CmSubscriptionDmiOutEvent",
seanbeirneddeaf092023-06-21 10:42:14 +010034 "properties": {
35 "data": {
36 "type": "object",
37 "properties": {
38 "clientId": {
39 "type": "string"
40 },
41 "subscriptionName": {
42 "type": "string"
43 },
44 "dmiName": {
45 "type": "string"
46 },
47 "subscriptionStatus": {
48 "type": "array",
49 "items": {
50 "$ref": "#/definitions/SubscriptionStatus"
51 }
52 }
53 },
54 "required": [
55 "clientId",
56 "subscriptionName",
57 "dmiName",
58 "subscriptionStatus"
59 ],
60 "additionalProperties": false
halil.cakal5de97882023-06-23 14:30:52 +010061 }
62 },
63 "additionalProperties": false,
64 "required": [
65 "data"
66 ]
seanbeirneddeaf092023-06-21 10:42:14 +010067 }
68 }
69}