Update APEX example to use JSON Schema plugin
[policy/apex-pdp.git] / examples / examples-grpc / src / main / resources / schemas / PMSubscriptionType.json
1 {
2   "$schema": "http://json-schema.org/draft-04/schema#",
3   "type": "object",
4   "properties": {
5     "changeType": {
6       "type": "string"
7     },
8     "closedLoopControlName": {
9       "type": "string"
10     },
11     "policyName": {
12       "type": "string"
13     },
14     "nfName": {
15       "type": "string"
16     },
17     "subscription": {
18       "type": "array",
19       "items": [
20         {
21           "type": "object",
22           "properties": {
23             "measurementGroup": {
24               "type": "object",
25               "properties": {
26                 "measurementTypes": {
27                   "type": "array",
28                   "items": [
29                     {
30                       "type": "object",
31                       "properties": {
32                         "measurementType": {
33                           "type": "string"
34                         }
35                       },
36                       "required": [
37                         "measurementType"
38                       ]
39                     },
40                     {
41                       "type": "object",
42                       "properties": {
43                         "measurementType": {
44                           "type": "string"
45                         }
46                       },
47                       "required": [
48                         "measurementType"
49                       ]
50                     }
51                   ]
52                 },
53                 "managedObjectDNsBasic": {
54                   "type": "array",
55                   "items": [
56                     {
57                       "type": "object",
58                       "properties": {
59                         "DN": {
60                           "type": "string"
61                         }
62                       },
63                       "required": [
64                         "DN"
65                       ]
66                     },
67                     {
68                       "type": "object",
69                       "properties": {
70                         "DN": {
71                           "type": "string"
72                         }
73                       },
74                       "required": [
75                         "DN"
76                       ]
77                     }
78                   ]
79                 }
80               },
81               "required": [
82                 "measurementTypes",
83                 "managedObjectDNsBasic"
84               ]
85             }
86           },
87           "required": [
88             "measurementGroup"
89           ]
90         }
91       ]
92     }
93   },
94   "required": [
95     "changeType",
96     "closedLoopControlName",
97     "policyName",
98     "nfName",
99     "subscription"
100   ]
101 }