Prefix with CmNotificationSubscription refactoring
[cps.git] / cps-ncmp-events / src / main / resources / schemas / cmnotificationsubscription / cm-notification-subscription-ncmp-in-event-schema-1.0.0.json
1 {
2   "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-ncmp-in-event:1.0.0",
3   "$ref": "#/definitions/CmNotificationSubscriptionNcmpInEvent",
4   "$schema": "https://json-schema.org/draft/2019-09/schema",
5   "definitions": {
6     "CmNotificationSubscriptionNcmpInEvent": {
7       "description": "The payload for subscription merge event.",
8       "javaType": "org.onap.cps.ncmp.events.cmnotificationsubscription_merge1_0_0.client_to_ncmp.CmNotificationSubscriptionNcmpInEvent",
9       "properties": {
10         "data": {
11           "properties": {
12             "subscriptionId": {
13               "description": "The subscription details.",
14               "type": "string"
15             },
16             "predicates": {
17               "type": "array",
18               "description": "Additional values to be added into the subscription",
19               "items": {
20                 "type": "object",
21                 "properties": {
22                   "targetFilter": {
23                     "description": "CM Handles to be targeted by the subscription",
24                     "type": "array",
25                     "items": {
26                       "type": "string"
27                     }
28                   },
29                   "scopeFilter": {
30                     "type": "object",
31                     "properties": {
32                       "datastore": {
33                         "description": "Datastore which is to be used by the subscription",
34                         "type": "string",
35                         "enum": ["ncmp-datastore:passthrough-operational", "ncmp-datastore:passthrough-running"]
36                       },
37                       "xpath-filter": {
38                         "description": "Filter to be applied to the CM Handles through this event",
39                         "type": "array",
40                         "items": {
41                           "type": "string"
42                         }
43                       }
44                     },
45                     "additionalProperties": false,
46                     "required": [
47                       "xpath-filter"
48                     ]
49                   }
50                 },
51                 "additionalProperties": false,
52                 "required": [
53                   "targetFilter"
54                 ]
55               },
56               "additionalProperties": false
57             }
58           },
59           "required": [
60             "subscriptionId",
61             "predicates"
62           ],
63           "type": "object",
64           "additionalProperties": false
65         }
66       },
67       "type": "object",
68       "additionalProperties": false,
69       "required": [
70         "data"
71       ]
72     }
73   }
74 }