From abb2045f4ed82ac2969cb97f2330cdb06ebc259f Mon Sep 17 00:00:00 2001 From: seanbeirne Date: Tue, 28 Jan 2025 10:16:34 +0000 Subject: Organise NCMP & CPS Event Schema Folders -Directories will reflect application.yml topic topology Issue-ID: CPS-2590 Change-Id: I42bfa10c54ae79726b5ad0b4d60a0d9e826a34d5 Signed-off-by: seanbeirne --- .../async/data-operation-event-schema-1.0.0.json | 77 -------- .../dmi-in-event-schema-1.0.0.json | 93 ---------- .../dmi-out-event-schema-1.0.0.json | 43 ----- .../ncmp-in-event-schema-1.0.0.json | 73 -------- .../ncmp-out-event-schema-1.0.0.json | 57 ------ ...dmi-async-request-response-event-schema-v1.json | 92 ---------- .../dmi/cm-events/avc-event-schema-1.0.0.json | 88 +++++++++ .../device-trust-level-event-schema-1.0.0.json | 30 ++++ .../schemas/dmidataavc/avc-event-schema-1.0.0.json | 88 --------- ...cmp-async-request-response-event-schema-v1.json | 197 -------------------- .../data-operation-event-schema-1.0.0.json | 77 ++++++++ ...dmi-async-request-response-event-schema-v1.json | 93 ++++++++++ ...cmp-async-request-response-event-schema-v1.json | 198 +++++++++++++++++++++ .../schemas/ncmp/avc/avc-event-schema-1.0.0.json | 56 ++++++ .../ncmp/avc/dmi-in-event-schema-1.0.0.json | 93 ++++++++++ .../ncmp/avc/dmi-out-event-schema-1.0.0.json | 43 +++++ .../ncmp/avc/ncmp-in-event-schema-1.0.0.json | 73 ++++++++ .../ncmp/avc/ncmp-out-event-schema-1.0.0.json | 57 ++++++ .../ncmpdataavc/avc-event-schema-1.0.0.json | 56 ------ .../device-trust-level-event-schema-1.0.0.json | 30 ---- 20 files changed, 808 insertions(+), 806 deletions(-) delete mode 100644 cps-ncmp-events/src/main/resources/schemas/async/data-operation-event-schema-1.0.0.json delete mode 100644 cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/dmi-in-event-schema-1.0.0.json delete mode 100644 cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/dmi-out-event-schema-1.0.0.json delete mode 100644 cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/ncmp-in-event-schema-1.0.0.json delete mode 100644 cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/ncmp-out-event-schema-1.0.0.json delete mode 100644 cps-ncmp-events/src/main/resources/schemas/dmi-async-request-response-event-schema-v1.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/dmi/cm-events/avc-event-schema-1.0.0.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/dmi/device-heartbeat/device-trust-level-event-schema-1.0.0.json delete mode 100644 cps-ncmp-events/src/main/resources/schemas/dmidataavc/avc-event-schema-1.0.0.json delete mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmp-async-request-response-event-schema-v1.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/data-operation-event-schema-1.0.0.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/dmi-async-request-response-event-schema-v1.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/ncmp-async-request-response-event-schema-v1.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmp/avc/avc-event-schema-1.0.0.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmp/avc/dmi-in-event-schema-1.0.0.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmp/avc/dmi-out-event-schema-1.0.0.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmp/avc/ncmp-in-event-schema-1.0.0.json create mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmp/avc/ncmp-out-event-schema-1.0.0.json delete mode 100644 cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/avc-event-schema-1.0.0.json delete mode 100644 cps-ncmp-events/src/main/resources/schemas/trustlevel/device-trust-level-event-schema-1.0.0.json (limited to 'cps-ncmp-events') diff --git a/cps-ncmp-events/src/main/resources/schemas/async/data-operation-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/async/data-operation-event-schema-1.0.0.json deleted file mode 100644 index c2915187c7..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/async/data-operation-event-schema-1.0.0.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps.ncmp.events.async:data-operation-event-schema:1.0.0", - "$ref": "#/definitions/DataOperationEvent", - "definitions": { - "DataOperationEvent": { - "description": "The payload of data operation event.", - "type": "object", - "javaType" : "org.onap.cps.ncmp.events.async1_0_0.DataOperationEvent", - "properties": { - "data": { - "description": "The payload content of the requested data.", - "type": "object", - "properties": { - "responses": { - "description": "An array of batch responses which contains both success and failure", - "type": "array", - "items": { - "type": "object", - "properties": { - "operationId": { - "description": "Used to distinguish multiple operations using same handle ids", - "type": "string" - }, - "ids": { - "description": "Id's of the cmhandles", - "type": "array", - "items": { - "type": "string" - } - }, - "resourceIdentifier": { - "description": "The format of resource identifier depend on the associated DMI Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but it can really be anything.", - "type": "string" - }, - "options": { - "description": "It is mandatory to add as key(s)=value(s)'. The format of options parameter depend on the associated DMI Plugin implementation.", - "type": "string" - }, - "statusCode": { - "description": "which says success or failure (0-99) are for success and (100-199) are for failure", - "type": "string" - }, - "statusMessage": { - "description": "Human readable message, Which says what the response has", - "type": "string" - }, - "result": { - "description": "Contains the requested data response.", - "type": "object", - "existingJavaType": "java.lang.Object", - "additionalProperties": false - } - }, - "required": [ - "operationId", - "ids", - "statusCode", - "statusMessage" - ], - "additionalProperties": false - } - } - }, - "required": [ - "responses" - ], - "additionalProperties": false - } - }, - "required": [ - "data" - ], - "additionalProperties": false - } - } -} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/dmi-in-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/dmi-in-event-schema-1.0.0.json deleted file mode 100644 index 93ec216e3d..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/dmi-in-event-schema-1.0.0.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-dmi-in-event-schema:1.0.0", - "$ref": "#/definitions/DmiInEvent", - "definitions": { - "DmiInEvent": { - "description": "The payload for cm notification subscription event incoming message from NCMP.", - "type": "object", - "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.ncmp_to_dmi.DmiInEvent", - "additionalProperties": false, - "properties": { - "data": { - "$ref": "#/definitions/data" - } - }, - "required": [ - "data" - ] - }, - "data": { - "type": "object", - "description": "Information about the targets and subscription", - "additionalProperties": false, - "properties": { - "cmHandles": { - "type": "array", - "items": { - "type": "object", - "description": "Details for the target cmhandles", - "additionalProperties": false, - "properties": { - "cmhandleId": { - "type": "string" - }, - "privateProperties": { - "type": "object", - "existingJavaType": "java.util.Map", - "items": { - "type": "string" - } - } - } - } - }, - "predicates": { - "type": "array", - "description": "Additional values to be added into the subscription", - "items": { - "type": "object", - "properties": { - "targetFilter": { - "description": "CM Handles to be targeted by the subscription", - "type": "array", - "items": { - "type": "string" - } - }, - "scopeFilter": { - "type": "object", - "properties": { - "datastore": { - "description": "Datastore which is to be used by the subscription", - "type": "string", - "enum": ["ncmp-datastore:passthrough-operational", "ncmp-datastore:passthrough-running"] - }, - "xpathFilter": { - "description": "Filter to be applied to the CM Handles through this event", - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "xpathFilter" - ] - } - }, - "additionalProperties": false, - "required": [ - "targetFilter" - ] - }, - "additionalProperties": false - } - }, - "required": [ - "cmHandles" - ] - } - } -} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/dmi-out-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/dmi-out-event-schema-1.0.0.json deleted file mode 100644 index 0910de1529..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/dmi-out-event-schema-1.0.0.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-dmi-out-event-schema:1.0.0", - "$ref": "#/definitions/DmiOutEvent", - "definitions": { - "DmiOutEvent": { - "description": "The payload for cm notification subscription merge event coming out from DMI Plugin.", - "type": "object", - "additionalProperties": false, - "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.dmi_to_ncmp.DmiOutEvent", - "properties": { - "data": { - "$ref": "#/definitions/Data" - } - }, - "required": [ - "data" - ], - "title": "DmiOutEvent" - }, - "Data": { - "type": "object", - "description": "Information about the targets and subscription", - "additionalProperties": false, - "properties": { - "statusCode": { - "type": "string", - "format": "integer", - "description": "The common status as defined in CPS" - }, - "statusMessage": { - "type": "string", - "description": "The common status message as defined in CPS" - } - }, - "required": [ - "statusCode", - "statusMessage" - ], - "title": "Data" - } - } -} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/ncmp-in-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/ncmp-in-event-schema-1.0.0.json deleted file mode 100644 index f8b6c2e680..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/ncmp-in-event-schema-1.0.0.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-ncmp-in-event:1.0.0", - "$ref": "#/definitions/NcmpInEvent", - "$schema": "https://json-schema.org/draft/2019-09/schema", - "definitions": { - "NcmpInEvent": { - "description": "The payload for subscription merge event.", - "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.client_to_ncmp.NcmpInEvent", - "properties": { - "data": { - "properties": { - "subscriptionId": { - "description": "The subscription details.", - "type": "string" - }, - "predicates": { - "type": "array", - "description": "Additional values to be added into the subscription", - "items": { - "type": "object", - "properties": { - "targetFilter": { - "description": "CM Handles to be targeted by the subscription", - "type": "array", - "items": { - "type": "string" - } - }, - "scopeFilter": { - "type": "object", - "properties": { - "datastore": { - "description": "Datastore which is to be used by the subscription", - "type": "string", - "enum": ["ncmp-datastore:passthrough-operational", "ncmp-datastore:passthrough-running"] - }, - "xpathFilter": { - "description": "Filter to be applied to the CM Handles through this event", - "type": "array", - "items": { - "type": "string" - } - } - }, - "additionalProperties": false, - "required": [ - "xpathFilter" - ] - } - }, - "additionalProperties": false, - "required": [ - "targetFilter" - ] - }, - "additionalProperties": false - } - }, - "required": [ - "subscriptionId" - ], - "type": "object", - "additionalProperties": false - } - }, - "type": "object", - "additionalProperties": false, - "required": [ - "data" - ] - } - } -} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/ncmp-out-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/ncmp-out-event-schema-1.0.0.json deleted file mode 100644 index 11dc4e1114..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/cmnotificationsubscription/ncmp-out-event-schema-1.0.0.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-ncmp-out-event-schema:1.0.0", - "$ref": "#/definitions/NcmpOutEvent", - "definitions": { - "NcmpOutEvent": { - "type": "object", - "description": "The payload applied cm subscription merge event coming out from NCMP.", - "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.ncmp_to_client.NcmpOutEvent", - "additionalProperties": false, - "properties": { - "data": { - "$ref": "#/definitions/Data" - } - }, - "required": [ - "data" - ], - "title": "NcmpOutEvent" - }, - "Data": { - "type": "object", - "description": "Information about the targets and subscription", - "additionalProperties": false, - "properties": { - "subscriptionId": { - "type": "string", - "description": "The unique subscription id" - }, - "acceptedTargets": { - "type": "object", - "existingJavaType": "java.util.Collection", - "description": "Unique Collection of accepted targets" - }, - "rejectedTargets": { - "type": "object", - "existingJavaType": "java.util.Collection", - "description": "Unique Collection of rejected targets" - }, - "pendingTargets": { - "type": "object", - "existingJavaType": "java.util.Collection", - "description": "Unique Collection of pending targets" - } - }, - "required": [ - "subscriptionId", - "acceptedTargets", - "rejectedTargets", - "pendingTargets" - ], - "title": "Data" - } - } - - -} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/dmi-async-request-response-event-schema-v1.json b/cps-ncmp-events/src/main/resources/schemas/dmi-async-request-response-event-schema-v1.json deleted file mode 100644 index 2340a4bc4c..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/dmi-async-request-response-event-schema-v1.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps.ncmp.events:dmi-async-request-response-event-schema:v1", - "$ref": "#/definitions/DmiAsyncRequestResponseEvent", - "definitions": { - "DmiAsyncRequestResponseEvent": { - "description": "The payload for NCMP async request response event.", - "type": "object", - "properties": { - "eventId": { - "description": "The unique id identifying the event generated by DMI.", - "type": "string" - }, - "eventCorrelationId": { - "description": "The request id passed by NCMP.", - "type": "string" - }, - "eventTime": { - "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.", - "type": "string" - }, - "eventTarget": { - "description": "The target of the event.", - "type": "string" - }, - "eventType": { - "description": "The type of the event.", - "type": "string" - }, - "eventSchema": { - "description": "The event schema for async request response events.", - "type": "string" - }, - "eventSchemaVersion": { - "description": "The event schema version for async request response events.", - "type": "string" - }, - "eventSource": { - "description": "The source of the event.", - "type": "string" - }, - "eventContent": { - "$ref": "#/definitions/Event-Content" - } - }, - "required": [ - "eventId", - "eventCorrelationId", - "eventTime", - "eventTarget", - "eventType", - "eventSchema", - "eventSchemaVersion", - "eventSource", - "eventContent" - ] - }, - "Event-Content": { - "description": "The event content.", - "type": "object", - "properties": { - "response-data-schema": { - "description": "The schema of response data", - "type": "string" - }, - "response-status": { - "description": "The status of the response.", - "type": "string" - }, - "response-code": { - "description": "The code of the response.", - "type": "string" - }, - "response-data": { - "description": "The data payload", - "type": "object", - "properties": { - "payload": { - "type": "object" - } - } - }, - "required": [ - "response-data-schema", - "response-status", - "response-code", - "response-data" - ] - } - } - } -} diff --git a/cps-ncmp-events/src/main/resources/schemas/dmi/cm-events/avc-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/dmi/cm-events/avc-event-schema-1.0.0.json new file mode 100644 index 0000000000..474520d142 --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/dmi/cm-events/avc-event-schema-1.0.0.json @@ -0,0 +1,88 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.events:avc-event-schema:1.0.0", + "$ref": "#/definitions/AvcEvent", + "definitions": { + "Edit": { + "additionalProperties": false, + "properties": { + "edit-id": { + "type": "string" + }, + "operation": { + "type": "string" + }, + "target": { + "type": "string" + }, + "value": { + "type": "object", + "existingJavaType": "java.lang.Object" + } + }, + "required": [ + "edit-id", + "operation", + "target" + ] + }, + "AvcEvent": { + "description": "The payload for AVC event.", + "type": "object", + "javaType": "org.onap.cps.ncmp.events.avc1_0_0.AvcEvent", + "properties": { + "data": { + "description": "The AVC event content compliant with RFC8641 format", + "type": "object", + "additionalProperties": false, + "properties": { + "push-change-update": { + "type": "object", + "additionalProperties": false, + "properties": { + "datastore-changes": { + "type": "object", + "additionalProperties": false, + "properties": { + "ietf-yang-patch:yang-patch": { + "type": "object", + "additionalProperties": false, + "properties": { + "patch-id": { + "type": "string" + }, + "edit": { + "type": "array", + "items": { + "$ref": "#/definitions/Edit" + } + } + }, + "required": [ + "patch-id", + "edit" + ] + } + }, + "required": [ + "ietf-yang-patch:yang-patch" + ] + } + }, + "required": [ + "datastore-changes" + ] + } + }, + "required": [ + "push-change-update" + ] + } + }, + "required": [ + "data" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/dmi/device-heartbeat/device-trust-level-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/dmi/device-heartbeat/device-trust-level-event-schema-1.0.0.json new file mode 100644 index 0000000000..e1796fbc73 --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/dmi/device-heartbeat/device-trust-level-event-schema-1.0.0.json @@ -0,0 +1,30 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.events:device-trust-level-event-schema:1.0.0", + "$ref": "#/definitions/DeviceTrustLevel", + "definitions": { + "DeviceTrustLevel" : { + "description": "The payload for device trust level event.", + "type": "object", + "javaType": "org.onap.cps.ncmp.events.trustlevel.DeviceTrustLevel", + "properties": { + "data": { + "type": "object", + "properties": { + "trustLevel": { + "type": "string" + } + }, + "required": [ + "trustLevel" + ], + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "data" + ] + } + } +} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/dmidataavc/avc-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/dmidataavc/avc-event-schema-1.0.0.json deleted file mode 100644 index 474520d142..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/dmidataavc/avc-event-schema-1.0.0.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps.ncmp.events:avc-event-schema:1.0.0", - "$ref": "#/definitions/AvcEvent", - "definitions": { - "Edit": { - "additionalProperties": false, - "properties": { - "edit-id": { - "type": "string" - }, - "operation": { - "type": "string" - }, - "target": { - "type": "string" - }, - "value": { - "type": "object", - "existingJavaType": "java.lang.Object" - } - }, - "required": [ - "edit-id", - "operation", - "target" - ] - }, - "AvcEvent": { - "description": "The payload for AVC event.", - "type": "object", - "javaType": "org.onap.cps.ncmp.events.avc1_0_0.AvcEvent", - "properties": { - "data": { - "description": "The AVC event content compliant with RFC8641 format", - "type": "object", - "additionalProperties": false, - "properties": { - "push-change-update": { - "type": "object", - "additionalProperties": false, - "properties": { - "datastore-changes": { - "type": "object", - "additionalProperties": false, - "properties": { - "ietf-yang-patch:yang-patch": { - "type": "object", - "additionalProperties": false, - "properties": { - "patch-id": { - "type": "string" - }, - "edit": { - "type": "array", - "items": { - "$ref": "#/definitions/Edit" - } - } - }, - "required": [ - "patch-id", - "edit" - ] - } - }, - "required": [ - "ietf-yang-patch:yang-patch" - ] - } - }, - "required": [ - "datastore-changes" - ] - } - }, - "required": [ - "push-change-update" - ] - } - }, - "required": [ - "data" - ], - "additionalProperties": false - } - } -} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp-async-request-response-event-schema-v1.json b/cps-ncmp-events/src/main/resources/schemas/ncmp-async-request-response-event-schema-v1.json deleted file mode 100644 index 51c2cf4d40..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/ncmp-async-request-response-event-schema-v1.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps.ncmp.events:ncmp-async-request-response-event-schema:v1", - "$ref": "#/definitions/NcmpAsyncRequestResponseEvent", - "definitions": { - "NcmpAsyncRequestResponseEvent": { - "description": "The payload for CPS async request response event.", - "type": "object", - "properties": { - "eventId": { - "description": "The unique id identifying the event generated by DMI.", - "type": "string" - }, - "eventCorrelationId": { - "description": "The request id passed by NCMP.", - "type": "string" - }, - "eventTime": { - "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.", - "type": "string" - }, - "eventTarget": { - "description": "The target of the event.", - "type": "string" - }, - "eventType": { - "description": "The type of the event.", - "type": "string" - }, - "eventSchema": { - "description": "The event schema for async request response events.", - "type": "string" - }, - "eventSchemaVersion": { - "description": "The event schema version for async request response events.", - "type": "string" - }, - "event": { - "$ref": "#/definitions/Event" - }, - "forwardedEvent": { - "$ref": "#/definitions/Forwarded-Event" - } - }, - "required": [ - "eventId", - "eventCorrelationId", - "eventTime", - "eventTarget", - "eventType", - "eventSchema", - "eventSchemaVersion" - ] - }, - "Forwarded-Event": { - "description": "The event content.", - "type": "object", - "properties": { - "eventId": { - "description": "The unique id identifying the event generated by DMI.", - "type": "string" - }, - "eventCorrelationId": { - "description": "The request id passed by NCMP.", - "type": "string" - }, - "eventTime": { - "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.", - "type": "string" - }, - "eventTarget": { - "description": "The target of the event.", - "type": "string" - }, - "eventType": { - "description": "The type of the event.", - "type": "string" - }, - "eventSchema": { - "description": "The event schema for async request response events.", - "type": "string" - }, - "eventSchemaVersion": { - "description": "The event schema version for async request response events.", - "type": "string" - }, - "eventSource": { - "description": "The source of the event.", - "type": "string" - }, - "response-data-schema": { - "description": "The received schema of response data", - "type": "string" - }, - "response-status": { - "description": "The received status of the response.", - "type": "string" - }, - "response-code": { - "description": "The received code of the response.", - "type": "string" - }, - "forwardedEventData": { - "description": "The data payload", - "type": "object", - "properties": { - "forwardedEventPayload": { - "type": "object" - } - } - }, - "required": [ - "eventId", - "eventCorrelationId", - "eventTime", - "eventTarget", - "eventType", - "eventSchema", - "eventSchemaVersion", - "eventSource", - "response-data-schema", - "response-status", - "response-code", - "forwardedEventData" - ] - } - }, - "Event": { - "description": "The event content.", - "type": "object", - "properties": { - "eventId": { - "description": "The unique id identifying the event generated by DMI", - "type": "string" - }, - "eventCorrelationId": { - "description": "The request id passed by NCMP.", - "type": "string" - }, - "eventTime": { - "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.", - "type": "string" - }, - "eventTarget": { - "description": "The target of the event.", - "type": "string" - }, - "eventType": { - "description": "The type of the event.", - "type": "string" - }, - "eventSchema": { - "description": "The event schema for async request response events.", - "type": "string" - }, - "eventSource": { - "description": "The source of the event.", - "type": "string" - }, - "response-data-schema": { - "description": "The received schema of response data", - "type": "string" - }, - "response-status": { - "description": "The received status of the response.", - "type": "string" - }, - "response-code": { - "description": "The received code of the response.", - "type": "string" - }, - "response-data": { - "description": "The data payload", - "type": "object", - "properties": { - "payload": { - "type": "object" - } - } - }, - "required": [ - "eventId", - "eventCorrelationId", - "eventTarget", - "eventTime", - "eventType", - "eventSchema", - "eventSource", - "response-data-schema", - "response-status", - "response-code", - "event-data" - ] - } - } - } -} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/data-operation-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/data-operation-event-schema-1.0.0.json new file mode 100644 index 0000000000..c2915187c7 --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/data-operation-event-schema-1.0.0.json @@ -0,0 +1,77 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.events.async:data-operation-event-schema:1.0.0", + "$ref": "#/definitions/DataOperationEvent", + "definitions": { + "DataOperationEvent": { + "description": "The payload of data operation event.", + "type": "object", + "javaType" : "org.onap.cps.ncmp.events.async1_0_0.DataOperationEvent", + "properties": { + "data": { + "description": "The payload content of the requested data.", + "type": "object", + "properties": { + "responses": { + "description": "An array of batch responses which contains both success and failure", + "type": "array", + "items": { + "type": "object", + "properties": { + "operationId": { + "description": "Used to distinguish multiple operations using same handle ids", + "type": "string" + }, + "ids": { + "description": "Id's of the cmhandles", + "type": "array", + "items": { + "type": "string" + } + }, + "resourceIdentifier": { + "description": "The format of resource identifier depend on the associated DMI Plugin implementation. For ONAP DMI Plugin it will be RESTConf paths but it can really be anything.", + "type": "string" + }, + "options": { + "description": "It is mandatory to add as key(s)=value(s)'. The format of options parameter depend on the associated DMI Plugin implementation.", + "type": "string" + }, + "statusCode": { + "description": "which says success or failure (0-99) are for success and (100-199) are for failure", + "type": "string" + }, + "statusMessage": { + "description": "Human readable message, Which says what the response has", + "type": "string" + }, + "result": { + "description": "Contains the requested data response.", + "type": "object", + "existingJavaType": "java.lang.Object", + "additionalProperties": false + } + }, + "required": [ + "operationId", + "ids", + "statusCode", + "statusMessage" + ], + "additionalProperties": false + } + } + }, + "required": [ + "responses" + ], + "additionalProperties": false + } + }, + "required": [ + "data" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/dmi-async-request-response-event-schema-v1.json b/cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/dmi-async-request-response-event-schema-v1.json new file mode 100644 index 0000000000..4db07bec95 --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/dmi-async-request-response-event-schema-v1.json @@ -0,0 +1,93 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.events:dmi-async-request-response-event-schema:v1", + "$ref": "#/definitions/DmiAsyncRequestResponseEvent", + "definitions": { + "DmiAsyncRequestResponseEvent": { + "description": "The payload for NCMP async request response event.", + "type": "object", + "javaType" : "org.onap.cps.ncmp.event.model.DmiAsyncRequestResponseEvent", + "properties": { + "eventId": { + "description": "The unique id identifying the event generated by DMI.", + "type": "string" + }, + "eventCorrelationId": { + "description": "The request id passed by NCMP.", + "type": "string" + }, + "eventTime": { + "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.", + "type": "string" + }, + "eventTarget": { + "description": "The target of the event.", + "type": "string" + }, + "eventType": { + "description": "The type of the event.", + "type": "string" + }, + "eventSchema": { + "description": "The event schema for async request response events.", + "type": "string" + }, + "eventSchemaVersion": { + "description": "The event schema version for async request response events.", + "type": "string" + }, + "eventSource": { + "description": "The source of the event.", + "type": "string" + }, + "eventContent": { + "$ref": "#/definitions/Event-Content" + } + }, + "required": [ + "eventId", + "eventCorrelationId", + "eventTime", + "eventTarget", + "eventType", + "eventSchema", + "eventSchemaVersion", + "eventSource", + "eventContent" + ] + }, + "Event-Content": { + "description": "The event content.", + "type": "object", + "properties": { + "response-data-schema": { + "description": "The schema of response data", + "type": "string" + }, + "response-status": { + "description": "The status of the response.", + "type": "string" + }, + "response-code": { + "description": "The code of the response.", + "type": "string" + }, + "response-data": { + "description": "The data payload", + "type": "object", + "properties": { + "payload": { + "type": "object" + } + } + }, + "required": [ + "response-data-schema", + "response-status", + "response-code", + "response-data" + ] + } + } + } +} diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/ncmp-async-request-response-event-schema-v1.json b/cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/ncmp-async-request-response-event-schema-v1.json new file mode 100644 index 0000000000..32b7becd05 --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp/async-m2m/ncmp-async-request-response-event-schema-v1.json @@ -0,0 +1,198 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.events:ncmp-async-request-response-event-schema:v1", + "$ref": "#/definitions/NcmpAsyncRequestResponseEvent", + "definitions": { + "NcmpAsyncRequestResponseEvent": { + "description": "The payload for CPS async request response event.", + "type": "object", + "javaType" : "org.onap.cps.ncmp.event.model.NcmpAsyncRequestResponseEvent", + "properties": { + "eventId": { + "description": "The unique id identifying the event generated by DMI.", + "type": "string" + }, + "eventCorrelationId": { + "description": "The request id passed by NCMP.", + "type": "string" + }, + "eventTime": { + "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.", + "type": "string" + }, + "eventTarget": { + "description": "The target of the event.", + "type": "string" + }, + "eventType": { + "description": "The type of the event.", + "type": "string" + }, + "eventSchema": { + "description": "The event schema for async request response events.", + "type": "string" + }, + "eventSchemaVersion": { + "description": "The event schema version for async request response events.", + "type": "string" + }, + "event": { + "$ref": "#/definitions/Event" + }, + "forwardedEvent": { + "$ref": "#/definitions/Forwarded-Event" + } + }, + "required": [ + "eventId", + "eventCorrelationId", + "eventTime", + "eventTarget", + "eventType", + "eventSchema", + "eventSchemaVersion" + ] + }, + "Forwarded-Event": { + "description": "The event content.", + "type": "object", + "properties": { + "eventId": { + "description": "The unique id identifying the event generated by DMI.", + "type": "string" + }, + "eventCorrelationId": { + "description": "The request id passed by NCMP.", + "type": "string" + }, + "eventTime": { + "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.", + "type": "string" + }, + "eventTarget": { + "description": "The target of the event.", + "type": "string" + }, + "eventType": { + "description": "The type of the event.", + "type": "string" + }, + "eventSchema": { + "description": "The event schema for async request response events.", + "type": "string" + }, + "eventSchemaVersion": { + "description": "The event schema version for async request response events.", + "type": "string" + }, + "eventSource": { + "description": "The source of the event.", + "type": "string" + }, + "response-data-schema": { + "description": "The received schema of response data", + "type": "string" + }, + "response-status": { + "description": "The received status of the response.", + "type": "string" + }, + "response-code": { + "description": "The received code of the response.", + "type": "string" + }, + "forwardedEventData": { + "description": "The data payload", + "type": "object", + "properties": { + "forwardedEventPayload": { + "type": "object" + } + } + }, + "required": [ + "eventId", + "eventCorrelationId", + "eventTime", + "eventTarget", + "eventType", + "eventSchema", + "eventSchemaVersion", + "eventSource", + "response-data-schema", + "response-status", + "response-code", + "forwardedEventData" + ] + } + }, + "Event": { + "description": "The event content.", + "type": "object", + "properties": { + "eventId": { + "description": "The unique id identifying the event generated by DMI", + "type": "string" + }, + "eventCorrelationId": { + "description": "The request id passed by NCMP.", + "type": "string" + }, + "eventTime": { + "description": "The time of the event. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'.", + "type": "string" + }, + "eventTarget": { + "description": "The target of the event.", + "type": "string" + }, + "eventType": { + "description": "The type of the event.", + "type": "string" + }, + "eventSchema": { + "description": "The event schema for async request response events.", + "type": "string" + }, + "eventSource": { + "description": "The source of the event.", + "type": "string" + }, + "response-data-schema": { + "description": "The received schema of response data", + "type": "string" + }, + "response-status": { + "description": "The received status of the response.", + "type": "string" + }, + "response-code": { + "description": "The received code of the response.", + "type": "string" + }, + "response-data": { + "description": "The data payload", + "type": "object", + "properties": { + "payload": { + "type": "object" + } + } + }, + "required": [ + "eventId", + "eventCorrelationId", + "eventTarget", + "eventTime", + "eventType", + "eventSchema", + "eventSource", + "response-data-schema", + "response-status", + "response-code", + "event-data" + ] + } + } + } +} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/avc-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/avc-event-schema-1.0.0.json new file mode 100644 index 0000000000..d24ec2c737 --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/avc-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:avc-event-schema:1.0.0", + "$ref": "#/definitions/AvcEvent", + "definitions": { + "AvcEvent": { + "javaType": "org.onap.cps.ncmp.events.avc.ncmp_to_client.AvcEvent", + "type": "object", + "additionalProperties": false, + "properties": { + "data": { + "$ref": "#/definitions/Data" + } + }, + "required": [ + "data" + ], + "title": "AvcEvent" + }, + "Data": { + "type": "object", + "additionalProperties": false, + "properties": { + "attributeValueChange": { + "type": "array", + "items": { + "$ref": "#/definitions/Avc" + } + } + }, + "required": [ + "avc" + ], + "title": "Data" + }, + "Avc": { + "type": "object", + "additionalProperties": false, + "properties": { + "attributeName": { + "type": "string" + }, + "oldAttributeValue": { + "type": "string" + }, + "newAttributeValue": { + "type": "string" + } + }, + "required": [ + "attributeName" + ], + "title": "avc" + } + } +} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/dmi-in-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/dmi-in-event-schema-1.0.0.json new file mode 100644 index 0000000000..93ec216e3d --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/dmi-in-event-schema-1.0.0.json @@ -0,0 +1,93 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-dmi-in-event-schema:1.0.0", + "$ref": "#/definitions/DmiInEvent", + "definitions": { + "DmiInEvent": { + "description": "The payload for cm notification subscription event incoming message from NCMP.", + "type": "object", + "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.ncmp_to_dmi.DmiInEvent", + "additionalProperties": false, + "properties": { + "data": { + "$ref": "#/definitions/data" + } + }, + "required": [ + "data" + ] + }, + "data": { + "type": "object", + "description": "Information about the targets and subscription", + "additionalProperties": false, + "properties": { + "cmHandles": { + "type": "array", + "items": { + "type": "object", + "description": "Details for the target cmhandles", + "additionalProperties": false, + "properties": { + "cmhandleId": { + "type": "string" + }, + "privateProperties": { + "type": "object", + "existingJavaType": "java.util.Map", + "items": { + "type": "string" + } + } + } + } + }, + "predicates": { + "type": "array", + "description": "Additional values to be added into the subscription", + "items": { + "type": "object", + "properties": { + "targetFilter": { + "description": "CM Handles to be targeted by the subscription", + "type": "array", + "items": { + "type": "string" + } + }, + "scopeFilter": { + "type": "object", + "properties": { + "datastore": { + "description": "Datastore which is to be used by the subscription", + "type": "string", + "enum": ["ncmp-datastore:passthrough-operational", "ncmp-datastore:passthrough-running"] + }, + "xpathFilter": { + "description": "Filter to be applied to the CM Handles through this event", + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "xpathFilter" + ] + } + }, + "additionalProperties": false, + "required": [ + "targetFilter" + ] + }, + "additionalProperties": false + } + }, + "required": [ + "cmHandles" + ] + } + } +} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/dmi-out-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/dmi-out-event-schema-1.0.0.json new file mode 100644 index 0000000000..0910de1529 --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/dmi-out-event-schema-1.0.0.json @@ -0,0 +1,43 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-dmi-out-event-schema:1.0.0", + "$ref": "#/definitions/DmiOutEvent", + "definitions": { + "DmiOutEvent": { + "description": "The payload for cm notification subscription merge event coming out from DMI Plugin.", + "type": "object", + "additionalProperties": false, + "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.dmi_to_ncmp.DmiOutEvent", + "properties": { + "data": { + "$ref": "#/definitions/Data" + } + }, + "required": [ + "data" + ], + "title": "DmiOutEvent" + }, + "Data": { + "type": "object", + "description": "Information about the targets and subscription", + "additionalProperties": false, + "properties": { + "statusCode": { + "type": "string", + "format": "integer", + "description": "The common status as defined in CPS" + }, + "statusMessage": { + "type": "string", + "description": "The common status message as defined in CPS" + } + }, + "required": [ + "statusCode", + "statusMessage" + ], + "title": "Data" + } + } +} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/ncmp-in-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/ncmp-in-event-schema-1.0.0.json new file mode 100644 index 0000000000..f8b6c2e680 --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/ncmp-in-event-schema-1.0.0.json @@ -0,0 +1,73 @@ +{ + "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-ncmp-in-event:1.0.0", + "$ref": "#/definitions/NcmpInEvent", + "$schema": "https://json-schema.org/draft/2019-09/schema", + "definitions": { + "NcmpInEvent": { + "description": "The payload for subscription merge event.", + "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.client_to_ncmp.NcmpInEvent", + "properties": { + "data": { + "properties": { + "subscriptionId": { + "description": "The subscription details.", + "type": "string" + }, + "predicates": { + "type": "array", + "description": "Additional values to be added into the subscription", + "items": { + "type": "object", + "properties": { + "targetFilter": { + "description": "CM Handles to be targeted by the subscription", + "type": "array", + "items": { + "type": "string" + } + }, + "scopeFilter": { + "type": "object", + "properties": { + "datastore": { + "description": "Datastore which is to be used by the subscription", + "type": "string", + "enum": ["ncmp-datastore:passthrough-operational", "ncmp-datastore:passthrough-running"] + }, + "xpathFilter": { + "description": "Filter to be applied to the CM Handles through this event", + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false, + "required": [ + "xpathFilter" + ] + } + }, + "additionalProperties": false, + "required": [ + "targetFilter" + ] + }, + "additionalProperties": false + } + }, + "required": [ + "subscriptionId" + ], + "type": "object", + "additionalProperties": false + } + }, + "type": "object", + "additionalProperties": false, + "required": [ + "data" + ] + } + } +} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/ncmp-out-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/ncmp-out-event-schema-1.0.0.json new file mode 100644 index 0000000000..11dc4e1114 --- /dev/null +++ b/cps-ncmp-events/src/main/resources/schemas/ncmp/avc/ncmp-out-event-schema-1.0.0.json @@ -0,0 +1,57 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps.ncmp.events:cm-notification-subscription-ncmp-out-event-schema:1.0.0", + "$ref": "#/definitions/NcmpOutEvent", + "definitions": { + "NcmpOutEvent": { + "type": "object", + "description": "The payload applied cm subscription merge event coming out from NCMP.", + "javaType": "org.onap.cps.ncmp.impl.cmnotificationsubscription_1_0_0.ncmp_to_client.NcmpOutEvent", + "additionalProperties": false, + "properties": { + "data": { + "$ref": "#/definitions/Data" + } + }, + "required": [ + "data" + ], + "title": "NcmpOutEvent" + }, + "Data": { + "type": "object", + "description": "Information about the targets and subscription", + "additionalProperties": false, + "properties": { + "subscriptionId": { + "type": "string", + "description": "The unique subscription id" + }, + "acceptedTargets": { + "type": "object", + "existingJavaType": "java.util.Collection", + "description": "Unique Collection of accepted targets" + }, + "rejectedTargets": { + "type": "object", + "existingJavaType": "java.util.Collection", + "description": "Unique Collection of rejected targets" + }, + "pendingTargets": { + "type": "object", + "existingJavaType": "java.util.Collection", + "description": "Unique Collection of pending targets" + } + }, + "required": [ + "subscriptionId", + "acceptedTargets", + "rejectedTargets", + "pendingTargets" + ], + "title": "Data" + } + } + + +} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/avc-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/avc-event-schema-1.0.0.json deleted file mode 100644 index d24ec2c737..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/ncmpdataavc/avc-event-schema-1.0.0.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps.ncmp.events:avc-event-schema:1.0.0", - "$ref": "#/definitions/AvcEvent", - "definitions": { - "AvcEvent": { - "javaType": "org.onap.cps.ncmp.events.avc.ncmp_to_client.AvcEvent", - "type": "object", - "additionalProperties": false, - "properties": { - "data": { - "$ref": "#/definitions/Data" - } - }, - "required": [ - "data" - ], - "title": "AvcEvent" - }, - "Data": { - "type": "object", - "additionalProperties": false, - "properties": { - "attributeValueChange": { - "type": "array", - "items": { - "$ref": "#/definitions/Avc" - } - } - }, - "required": [ - "avc" - ], - "title": "Data" - }, - "Avc": { - "type": "object", - "additionalProperties": false, - "properties": { - "attributeName": { - "type": "string" - }, - "oldAttributeValue": { - "type": "string" - }, - "newAttributeValue": { - "type": "string" - } - }, - "required": [ - "attributeName" - ], - "title": "avc" - } - } -} \ No newline at end of file diff --git a/cps-ncmp-events/src/main/resources/schemas/trustlevel/device-trust-level-event-schema-1.0.0.json b/cps-ncmp-events/src/main/resources/schemas/trustlevel/device-trust-level-event-schema-1.0.0.json deleted file mode 100644 index e1796fbc73..0000000000 --- a/cps-ncmp-events/src/main/resources/schemas/trustlevel/device-trust-level-event-schema-1.0.0.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps.ncmp.events:device-trust-level-event-schema:1.0.0", - "$ref": "#/definitions/DeviceTrustLevel", - "definitions": { - "DeviceTrustLevel" : { - "description": "The payload for device trust level event.", - "type": "object", - "javaType": "org.onap.cps.ncmp.events.trustlevel.DeviceTrustLevel", - "properties": { - "data": { - "type": "object", - "properties": { - "trustLevel": { - "type": "string" - } - }, - "required": [ - "trustLevel" - ], - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "data" - ] - } - } -} \ No newline at end of file -- cgit