Merge "Update cm-data-subscriptions model"
[cps.git] / cps-ncmp-events / src / main / resources / schemas / cmnotificationsubscription / cm-notification-subscription-ncmp-out-event-schema-1.0.0.json
1 {
2   "$schema": "https://json-schema.org/draft/2019-09/schema",
3   "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-ncmp-out-event-schema:1.0.0",
4   "$ref": "#/definitions/CmNotificationSubscriptionNcmpOutEvent",
5   "definitions": {
6     "CmNotificationSubscriptionNcmpOutEvent": {
7       "type": "object",
8       "description": "The payload applied cm subscription merge event coming out from NCMP.",
9       "javaType": "org.onap.cps.ncmp.events.cmsubscription_merge1_0_0.ncmp_to_client.CmNotificationSubscriptionNcmpOutEvent",
10       "additionalProperties": false,
11       "properties": {
12         "data": {
13           "$ref": "#/definitions/Data"
14         }
15       },
16       "required": [
17         "data"
18       ],
19       "title": "CmNotificationSubscriptionNcmpOutEvent"
20     },
21     "Data": {
22       "type": "object",
23       "description": "Information about the targets and subscription",
24       "additionalProperties": false,
25       "properties": {
26         "subscriptionId": {
27           "type": "string",
28           "description": "The unique subscription id"
29         },
30         "accepted-targets": {
31           "type": "array",
32           "description": "List of accepted targets",
33           "items": {
34             "type": "string"
35           }
36         },
37         "rejected-targets": {
38           "type": "array",
39           "description": "List of rejected targets",
40           "items": {
41             "type": "string"
42           }
43         },
44         "pending-targets": {
45           "type": "array",
46           "description": "List of pending targets",
47           "items": {
48             "type": "string"
49           }
50         }
51       },
52       "required": [
53         "accepted-targets",
54         "pending-targets",
55         "rejected-targets",
56         "subscriptionId"
57       ],
58       "title": "Data"
59     }
60   }
61
62
63 }