From 9d5f2dd2137fbf3b8502b2c158007afac90b5b12 Mon Sep 17 00:00:00 2001 From: JvD_Ericsson Date: Wed, 1 Nov 2023 11:39:12 +0000 Subject: Add trust level notification schema Issue-ID: CPS-1910 Signed-off-by: JvD_Ericsson Change-Id: If7265e0020b2ba247aaf64c9c0820e3cfdb23583 --- .../attribute-value-change-event-schema-1.0.0.json | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/attribute-value-change-event-schema-1.0.0.json (limited to 'cps-ncmp-events') diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/attribute-value-change-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/attribute-value-change-event-schema-1.0.0.json new file mode 100644 index 0000000000..9dee00e21e --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/attribute-value-change-event-schema-1.0.0.json @@ -0,0 +1,56 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.events:attribute-value-change-event-schema:1.0.0", + "$ref": "#/definitions/AttributeValueChangeEvent", + "definitions": { + "AttributeValueChangeEvent": { + "javaType": "org.onap.cps.ncmp.events.avc.ncmp_to_client.AttributeValueChangeEvent", + "type": "object", + "additionalProperties": false, + "properties": { + "data": { + "$ref": "#/definitions/Data" + } + }, + "required": [ + "data" + ], + "title": "AttributeValueChangeEvent" + }, + "Data": { + "type": "object", + "additionalProperties": false, + "properties": { + "attributeValueChange": { + "type": "array", + "items": { + "$ref": "#/definitions/AttributeValueChange" + } + } + }, + "required": [ + "attributeValueChange" + ], + "title": "Data" + }, + "AttributeValueChange": { + "type": "object", + "additionalProperties": false, + "properties": { + "attributeName": { + "type": "string" + }, + "oldAttributeValue": { + "type": "string" + }, + "newAttributeValue": { + "type": "string" + } + }, + "required": [ + "attributeName" + ], + "title": "AttributeValueChange" + } + } +} \ No newline at end of file -- cgit 1.2.3-korg