diff options
author | 2022-07-25 10:46:57 +0100 | |
---|---|---|
committer | 2022-07-26 10:18:58 +0100 | |
commit | 751aa0f3c7f090bc10bc59f74aaace1f297a7c2c (patch) | |
tree | acc983fd58594b56b24846e3ee6becb8c494418c /examples/examples-grpc/src/main/resources/schemas/CDSCreateSubscriptionPayloadType.json | |
parent | cfa642373420fa2bc429c94f17e4f0c0798e5791 (diff) |
Update APEX example to use JSON Schema plugin
Change-Id: Ic8b412ce0ca71b4452d67b1e4445e423b0ec5b54
Issue-ID: POLICY-4292
Signed-off-by: a.sreekumar <ajith.sreekumar@bell.ca>
Diffstat (limited to 'examples/examples-grpc/src/main/resources/schemas/CDSCreateSubscriptionPayloadType.json')
-rw-r--r-- | examples/examples-grpc/src/main/resources/schemas/CDSCreateSubscriptionPayloadType.json | 133 |
1 files changed, 133 insertions, 0 deletions
diff --git a/examples/examples-grpc/src/main/resources/schemas/CDSCreateSubscriptionPayloadType.json b/examples/examples-grpc/src/main/resources/schemas/CDSCreateSubscriptionPayloadType.json new file mode 100644 index 000000000..10f961f76 --- /dev/null +++ b/examples/examples-grpc/src/main/resources/schemas/CDSCreateSubscriptionPayloadType.json @@ -0,0 +1,133 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "required": [ + "create-subscription-request" + ], + "properties": { + "create-subscription-request": { + "type": "object", + "required": [ + "create-subscription-properties" + ], + "properties": { + "create-subscription-properties": { + "type": "object", + "required": [ + "nfName", + "administrativeState", + "subscriptionName", + "measurementGroups", + "fileBasedGP", + "fileLocation" + ], + "properties": { + "nfName": { + "type": "string", + "default": "", + "examples": [ + "pnf300" + ], + "pattern": "^.*$" + }, + "administrativeState": { + "type": "string", + "default": "", + "examples": [ + "UNLOCKED" + ], + "pattern": "^.*$" + }, + "subscriptionName": { + "type": "string", + "default": "", + "examples": [ + "testPolicyB" + ], + "pattern": "^.*$" + }, + "measurementGroups": { + "type": "array", + "default": [], + "items": { + "type": "object", + "required": [ + "measurementGroup" + ], + "properties": { + "measurementGroup": { + "type": "object", + "required": [ + "measurementTypes", + "managedObjectDNsBasic" + ], + "properties": { + "measurementTypes": { + "type": "array", + "default": [], + "items": { + "type": "object", + "required": [ + "measurementType" + ], + "properties": { + "measurementType": { + "type": "string", + "default": "", + "examples": [ + "countera" + ], + "pattern": "^.*$" + } + } + } + }, + "managedObjectDNsBasic": { + "type": "array", + "default": [], + "items": { + "$id": "#root/create-subscription-request/create-subscription-properties/measurementGroups/items/measurementGroup/managedObjectDNsBasic/items", + "title": "Items", + "type": "object", + "required": [ + "DN" + ], + "properties": { + "DN": { + "type": "string", + "default": "", + "examples": [ + "dna" + ], + "pattern": "^.*$" + } + } + } + } + } + } + } + } + }, + "fileBasedGP": { + "type": "string", + "default": "", + "examples": [ + "15.0" + ], + "pattern": "^.*$" + }, + "fileLocation": { + "type": "string", + "default": "", + "examples": [ + "/pm/pm.xml" + ], + "pattern": "^.*$" + } + } + } + } + } + } +}
\ No newline at end of file |