seanbeirne | ddeaf09 | 2023-06-21 10:42:14 +0100 | [diff] [blame] | 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2019-09/schema", |
mpriyank | 2fe802a | 2023-08-08 15:27:18 +0100 | [diff] [blame] | 3 | "$id": "urn:cps:org.onap.cps.ncmp.events:cm-subscription-dmi-out-event-schema:1.0.0", |
| 4 | "$ref": "#/definitions/CmSubscriptionDmiOutEvent", |
seanbeirne | ddeaf09 | 2023-06-21 10:42:14 +0100 | [diff] [blame] | 5 | "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", |
mpriyank | 2640b91 | 2023-08-10 23:09:38 +0100 | [diff] [blame] | 17 | "REJECTED" |
seanbeirne | ddeaf09 | 2023-06-21 10:42:14 +0100 | [diff] [blame] | 18 | ] |
| 19 | }, |
| 20 | "details" : { |
| 21 | "type": "string" |
| 22 | } |
| 23 | }, |
| 24 | "required": [ |
| 25 | "id", |
| 26 | "status" |
| 27 | ], |
| 28 | "additionalProperties": false |
| 29 | }, |
mpriyank | 2fe802a | 2023-08-08 15:27:18 +0100 | [diff] [blame] | 30 | "CmSubscriptionDmiOutEvent" : { |
seanbeirne | ddeaf09 | 2023-06-21 10:42:14 +0100 | [diff] [blame] | 31 | "description": "The payload for subscription response event.", |
| 32 | "type": "object", |
mpriyank | 2fe802a | 2023-08-08 15:27:18 +0100 | [diff] [blame] | 33 | "javaType": "org.onap.cps.ncmp.events.cmsubscription1_0_0.dmi_to_ncmp.CmSubscriptionDmiOutEvent", |
seanbeirne | ddeaf09 | 2023-06-21 10:42:14 +0100 | [diff] [blame] | 34 | "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.cakal | 5de9788 | 2023-06-23 14:30:52 +0100 | [diff] [blame] | 61 | } |
| 62 | }, |
| 63 | "additionalProperties": false, |
| 64 | "required": [ |
| 65 | "data" |
| 66 | ] |
seanbeirne | ddeaf09 | 2023-06-21 10:42:14 +0100 | [diff] [blame] | 67 | } |
| 68 | } |
| 69 | } |