Merge "Add trust level notification schema"
authorToine Siebelink <toine.siebelink@est.tech>
Thu, 2 Nov 2023 20:36:35 +0000 (20:36 +0000)
committerGerrit Code Review <gerrit@onap.org>
Thu, 2 Nov 2023 20:36:35 +0000 (20:36 +0000)
cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/attribute-value-change-event-schema-1.0.0.json [new file with mode: 0644]

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 (file)
index 0000000..9dee00e
--- /dev/null
@@ -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