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 --- .../cps-data-updated-event-schema-1.0.0.json | 61 ++++++++++++++++++++++ .../cps-data-updated-event-schema-1.0.0.json | 61 ---------------------- 2 files changed, 61 insertions(+), 61 deletions(-) create mode 100644 cps-events/src/main/resources/schemas/cps.dataupdated/cps-data-updated-event-schema-1.0.0.json delete mode 100644 cps-events/src/main/resources/schemas/updatenode/cps-data-updated-event-schema-1.0.0.json (limited to 'cps-events') diff --git a/cps-events/src/main/resources/schemas/cps.dataupdated/cps-data-updated-event-schema-1.0.0.json b/cps-events/src/main/resources/schemas/cps.dataupdated/cps-data-updated-event-schema-1.0.0.json new file mode 100644 index 0000000000..a3eaf63fa4 --- /dev/null +++ b/cps-events/src/main/resources/schemas/cps.dataupdated/cps-data-updated-event-schema-1.0.0.json @@ -0,0 +1,61 @@ +{ + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps:data-updated-event-schema:1.0.0", + "$ref": "#/definitions/CpsDataUpdatedEvent", + "definitions": { + "CpsDataUpdatedEvent": { + "description": "The payload for CPS data updated event.", + "type": "object", + "javaType": "org.onap.cps.events.model.CpsDataUpdatedEvent", + "properties": { + "data": { + "type": "object", + "properties": { + "observedTimestamp": { + "description": "The timestamp when the data has been observed. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'. Ex: '2024-02-12T09:35:46.143+0530' ", + "type": "string" + }, + "dataspaceName": { + "description": "The name of CPS Core dataspace the data belongs to.", + "type": "string" + }, + "schemaSetName": { + "description": "The name of CPS Core schema set the data adheres to.", + "type": "string" + }, + "anchorName": { + "description": "The name of CPS Core anchor the data is attached to.", + "type": "string" + }, + "operation": { + "description": "The operation on the data", + "type": "string", + "enum": [ + "CREATE", + "UPDATE", + "DELETE" + ] + }, + "xpath": { + "description": "xpath of the updated content", + "type": "string" + } + }, + "required": [ + "observedTimestamp", + "dataspaceName", + "schemaSetName", + "anchorName", + "operation", + "xpath" + ], + "additionalProperties": false + } + }, + "additionalProperties": false, + "required": [ + "data" + ] + } + } +} diff --git a/cps-events/src/main/resources/schemas/updatenode/cps-data-updated-event-schema-1.0.0.json b/cps-events/src/main/resources/schemas/updatenode/cps-data-updated-event-schema-1.0.0.json deleted file mode 100644 index a3eaf63fa4..0000000000 --- a/cps-events/src/main/resources/schemas/updatenode/cps-data-updated-event-schema-1.0.0.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2019-09/schema", - "$id": "urn:cps:org.onap.cps:data-updated-event-schema:1.0.0", - "$ref": "#/definitions/CpsDataUpdatedEvent", - "definitions": { - "CpsDataUpdatedEvent": { - "description": "The payload for CPS data updated event.", - "type": "object", - "javaType": "org.onap.cps.events.model.CpsDataUpdatedEvent", - "properties": { - "data": { - "type": "object", - "properties": { - "observedTimestamp": { - "description": "The timestamp when the data has been observed. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'. Ex: '2024-02-12T09:35:46.143+0530' ", - "type": "string" - }, - "dataspaceName": { - "description": "The name of CPS Core dataspace the data belongs to.", - "type": "string" - }, - "schemaSetName": { - "description": "The name of CPS Core schema set the data adheres to.", - "type": "string" - }, - "anchorName": { - "description": "The name of CPS Core anchor the data is attached to.", - "type": "string" - }, - "operation": { - "description": "The operation on the data", - "type": "string", - "enum": [ - "CREATE", - "UPDATE", - "DELETE" - ] - }, - "xpath": { - "description": "xpath of the updated content", - "type": "string" - } - }, - "required": [ - "observedTimestamp", - "dataspaceName", - "schemaSetName", - "anchorName", - "operation", - "xpath" - ], - "additionalProperties": false - } - }, - "additionalProperties": false, - "required": [ - "data" - ] - } - } -} -- cgit