diff options
author | 2021-03-16 22:23:27 +0000 | |
---|---|---|
committer | 2021-03-16 22:23:27 +0000 | |
commit | a652db5d8c8fb8a353893cf0e8c811cf0f3448e6 (patch) | |
tree | a039c44e7bacceb8f729c349b945c116d2e1540a /components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json | |
parent | 2b571e01e0b8915f4a00cace7a7e39aee1826f37 (diff) | |
parent | 03f38c6e5986cc2997e67d6b234902d8d25f2fcf (diff) |
Merge "[PMSH] Update the data-format schema for events"
Diffstat (limited to 'components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json')
-rwxr-xr-x | components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json | 82 |
1 files changed, 72 insertions, 10 deletions
diff --git a/components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json b/components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json index 9c1d252f..cda1a223 100755 --- a/components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json +++ b/components/pm-subscription-handler/dpo/data-formats/pmsh-cl-input.json @@ -1,11 +1,73 @@ -{
- "self": {
- "name": "PMSH_CL_INPUT",
- "version": "1.0.0",
- "description": "Unstructured PMSH CL INPUT"
- },
- "dataformatversion": "1.0.0",
- "unstructured": {
- "encoding": "UTF-8"
- }
+{ + "self": { + "name": "PMSH_CL_INPUT", + "version": "1.0.0", + "description": "The input format of PM Subscription CL event." + }, + "dataformatversion": "1.0.0", + "jsonSchema": { + "name": "PM Subscription CL input", + "version": "1.0.0", + "properties": { + "name": { + "type": "string" + }, + "nameSpace": { + "type": "string" + }, + "source": { + "type": "string" + }, + "target": { + "type": "string" + }, + "version": { + "type": "string" + }, + "status": { + "type": "object", + "description": "The status response from the policy framework.", + "properties": { + "subscriptionName": { + "type": "string", + "description": "The unique name of the subscription object." + }, + "nfName": { + "type": "string", + "description": "The name of the nf in A&AI." + }, + "changeType": { + "type": "string", + "description": "This is the change type action that was undertaken to create/delete a PM subscription.", + "enum": [ + "CREATE", + "DELETE" + ] + }, + "message": { + "type": "string", + "description": "The return of the change type action status taken can be success or failure", + "enum": [ + "success", + "failure" + ] + } + }, + "required": [ + "subscriptionName", + "nfName", + "changeType", + "message" + ] + } + }, + "required": [ + "name", + "nameSpace", + "source", + "target", + "version", + "status" + ] + } }
\ No newline at end of file |