Improve 32K limit tests
[cps.git] / cps-ncmp-events / src / main / resources / schemas / avc-subscription-event-outcome-v1.json
1 {
2   "$schema": "https://json-schema.org/draft/2019-09/schema",
3   "$id": "urn:cps:org.onap.cps.ncmp.events:avc-subscription-event-outcome:v1",
4   "$ref": "#/definitions/SubscriptionEventOutcome",
5   "definitions": {
6     "SubscriptionEventOutcome": {
7       "description": "The payload for avc subscription event outcome message.",
8       "type": "object",
9       "javaType" : "org.onap.cps.ncmp.events.avc.subscription.v1.SubscriptionEventOutcome",
10       "properties": {
11         "version": {
12           "description": "The outcome event type version",
13           "type": "string"
14         },
15         "eventType": {
16           "description": "The event type",
17           "type": "string",
18           "enum": [
19             "COMPLETE_OUTCOME",
20             "PARTIAL_OUTCOME"
21           ]
22         },
23         "event": {
24           "$ref": "#/definitions/event"
25         }
26       },
27       "required": [
28         "version",
29         "eventType",
30         "event"
31       ]
32     },
33     "event": {
34       "description": "The event content for outcome message.",
35       "type": "object",
36       "javaType": "InnerSubscriptionEventOutcome",
37       "properties": {
38         "subscription": {
39           "description": "The subscription details.",
40           "type": "object",
41           "properties": {
42             "clientID": {
43               "description": "The clientID",
44               "type": "string"
45             },
46             "name": {
47               "description": "The name of the subscription",
48               "type": "string"
49             }
50           },
51           "required": [
52             "clientID",
53             "name"
54           ]
55         },
56         "predicates": {
57           "description": "Additional values to be added into the subscription outcome",
58           "type": "object",
59           "properties": {
60             "rejectedTargets": {
61               "description": "Rejected CM Handles to be responded by the subscription",
62               "type": "array"
63             },
64             "acceptedTargets": {
65               "description": "Accepted CM Handles to be responded by the subscription",
66               "type": "array"
67             },
68             "pendingTargets": {
69               "description": "Pending CM Handles to be responded by the subscription",
70               "type": "array"
71             }
72           }
73         }
74       },
75       "required": [
76         "subscription",
77         "predicates"
78       ]
79     }
80   }
81 }