mpriyank | 87f0b00 | 2023-05-04 11:24:29 +0100 | [diff] [blame] | 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2019-09/schema", |
mpriyank | 3032261 | 2023-06-16 15:55:52 +0100 | [diff] [blame^] | 3 | "$id": "urn:cps:org.onap.cps.ncmp.events:avc-event-schema:1.0.0", |
mpriyank | 87f0b00 | 2023-05-04 11:24:29 +0100 | [diff] [blame] | 4 | "$ref": "#/definitions/AvcEvent", |
| 5 | "definitions": { |
mpriyank | acae85f | 2023-05-18 14:56:07 +0100 | [diff] [blame] | 6 | "Edit": { |
mpriyank | acae85f | 2023-05-18 14:56:07 +0100 | [diff] [blame] | 7 | "additionalProperties": false, |
| 8 | "properties": { |
| 9 | "edit-id": { |
| 10 | "type": "string" |
| 11 | }, |
| 12 | "operation": { |
| 13 | "type": "string" |
| 14 | }, |
| 15 | "target": { |
| 16 | "type": "string" |
| 17 | }, |
| 18 | "value": { |
| 19 | "$ref": "#/definitions/Value" |
| 20 | } |
| 21 | }, |
| 22 | "required": [ |
| 23 | "edit-id", |
| 24 | "operation", |
| 25 | "target" |
| 26 | ] |
| 27 | }, |
| 28 | "Value": { |
| 29 | "type": "object", |
| 30 | "additionalProperties": false, |
| 31 | "properties": { |
| 32 | "attributes": { |
| 33 | "type": "array", |
| 34 | "items": { |
| 35 | "type": "object", |
| 36 | "existingJavaType": "java.util.Map<String,Object>", |
| 37 | "additionalProperties": false, |
| 38 | "properties": { |
| 39 | "isHoAllowed": { |
| 40 | "type": "boolean" |
| 41 | } |
| 42 | } |
| 43 | } |
| 44 | } |
| 45 | } |
| 46 | }, |
mpriyank | 87f0b00 | 2023-05-04 11:24:29 +0100 | [diff] [blame] | 47 | "AvcEvent": { |
| 48 | "description": "The payload for AVC event.", |
| 49 | "type": "object", |
mpriyank | 3032261 | 2023-06-16 15:55:52 +0100 | [diff] [blame^] | 50 | "javaType": "org.onap.cps.ncmp.events.avc1_0_0.AvcEvent", |
mpriyank | 87f0b00 | 2023-05-04 11:24:29 +0100 | [diff] [blame] | 51 | "properties": { |
mpriyank | 3032261 | 2023-06-16 15:55:52 +0100 | [diff] [blame^] | 52 | "data": { |
mpriyank | acae85f | 2023-05-18 14:56:07 +0100 | [diff] [blame] | 53 | "description": "The AVC event content compliant with RFC8641 format", |
mpriyank | 87f0b00 | 2023-05-04 11:24:29 +0100 | [diff] [blame] | 54 | "type": "object", |
mpriyank | acae85f | 2023-05-18 14:56:07 +0100 | [diff] [blame] | 55 | "additionalProperties": false, |
| 56 | "properties": { |
| 57 | "push-change-update": { |
| 58 | "type": "object", |
| 59 | "additionalProperties": false, |
| 60 | "properties": { |
| 61 | "datastore-changes": { |
| 62 | "type": "object", |
| 63 | "additionalProperties": false, |
| 64 | "properties": { |
| 65 | "ietf-yang-patch:yang-patch": { |
| 66 | "type": "object", |
| 67 | "additionalProperties": false, |
| 68 | "properties": { |
| 69 | "patch-id": { |
| 70 | "type": "string" |
| 71 | }, |
| 72 | "edit": { |
| 73 | "type": "array", |
| 74 | "items": { |
| 75 | "$ref": "#/definitions/Edit" |
| 76 | } |
| 77 | } |
| 78 | }, |
| 79 | "required": [ |
| 80 | "patch-id", |
| 81 | "edit" |
| 82 | ] |
| 83 | } |
| 84 | }, |
| 85 | "required": [ |
| 86 | "ietf-yang-patch:yang-patch" |
| 87 | ] |
| 88 | } |
| 89 | }, |
| 90 | "required": [ |
| 91 | "datastore-changes" |
| 92 | ] |
| 93 | } |
| 94 | }, |
| 95 | "required": [ |
| 96 | "push-change-update" |
| 97 | ] |
mpriyank | 87f0b00 | 2023-05-04 11:24:29 +0100 | [diff] [blame] | 98 | } |
| 99 | }, |
| 100 | "required": [ |
mpriyank | 3032261 | 2023-06-16 15:55:52 +0100 | [diff] [blame^] | 101 | "data" |
mpriyank | 87f0b00 | 2023-05-04 11:24:29 +0100 | [diff] [blame] | 102 | ], |
| 103 | "additionalProperties": false |
| 104 | } |
| 105 | } |
| 106 | } |