From dcb0c670626c84c89054c7aa497e1ddd6e4eea98 Mon Sep 17 00:00:00 2001 From: Roelant Vos Date: Mon, 13 Nov 2023 04:17:24 +1000 Subject: [PATCH] Tidy-ups, adding extension to top-level mapping object & ensuring JSDL is consistent. --- .../DataObjectMappingList.cs | 9 ++++++- ...ceDataWarehouseAutomationMetadataV2_0.json | 27 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/DataWarehouseAutomation/DataWarehouseAutomation/DataObjectMappingList.cs b/DataWarehouseAutomation/DataWarehouseAutomation/DataObjectMappingList.cs index 809381f..a69cb9f 100644 --- a/DataWarehouseAutomation/DataWarehouseAutomation/DataObjectMappingList.cs +++ b/DataWarehouseAutomation/DataWarehouseAutomation/DataObjectMappingList.cs @@ -25,9 +25,16 @@ public class DataObjectMappingList public string? Name { get; set; } /// - /// Free-form and optional classification for the mapping for use in data logistics generation logic (evaluation). + /// Free-form and optional classification for the mapping for use in data logistics generation logic. /// [JsonPropertyName("classifications")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] public List? Classifications { get; set; } + + /// + /// The collection of extension Key/Value pairs. + /// + [JsonPropertyName("extensions")] + [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] + public List? Extensions { get; set; } } diff --git a/GenericInterface/interfaceDataWarehouseAutomationMetadataV2_0.json b/GenericInterface/interfaceDataWarehouseAutomationMetadataV2_0.json index c80a88d..683d5f2 100644 --- a/GenericInterface/interfaceDataWarehouseAutomationMetadataV2_0.json +++ b/GenericInterface/interfaceDataWarehouseAutomationMetadataV2_0.json @@ -10,6 +10,33 @@ "properties": { "dataObjectMappings": { "$ref": "#/definitions/dataObjectMappings" + }, + "name": { + "$id": "#/definitions/dataObjectMappings/properties/name", + "title": "Name", + "description": "Optional name of the data object mapping list.", + "type": "string" + }, + "classifications": { + "$id": "#/definitions/dataObjectMappings/properties/classifications", + "title": "Classifications", + "description": "Classification for the data object mapping list.", + "type": [ "array", "null" ], + "items": { + "$ref": "#/definitions/dataClassification" + }, + "minItems": 0, + "uniqueItems": true + }, + "extensions": { + "$id": "#/definitions/dataObjectMappings/properties/extensions", + "description": "Key/Value pair extension object.", + "type": [ "array", "null" ], + "items": { + "$ref": "#/definitions/extension" + }, + "minItems": 0, + "uniqueItems": true } }, "definitions": {