Skip to content

Commit dcb0c67

Browse files
committed
Tidy-ups, adding extension to top-level mapping object & ensuring JSDL is consistent.
1 parent a283551 commit dcb0c67

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

DataWarehouseAutomation/DataWarehouseAutomation/DataObjectMappingList.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,16 @@ public class DataObjectMappingList
2525
public string? Name { get; set; }
2626

2727
/// <summary>
28-
/// Free-form and optional classification for the mapping for use in data logistics generation logic (evaluation).
28+
/// Free-form and optional classification for the mapping for use in data logistics generation logic.
2929
/// </summary>
3030
[JsonPropertyName("classifications")]
3131
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
3232
public List<DataClassification>? Classifications { get; set; }
33+
34+
/// <summary>
35+
/// The collection of extension Key/Value pairs.
36+
/// </summary>
37+
[JsonPropertyName("extensions")]
38+
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
39+
public List<Extension>? Extensions { get; set; }
3340
}

GenericInterface/interfaceDataWarehouseAutomationMetadataV2_0.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,33 @@
1010
"properties": {
1111
"dataObjectMappings": {
1212
"$ref": "#/definitions/dataObjectMappings"
13+
},
14+
"name": {
15+
"$id": "#/definitions/dataObjectMappings/properties/name",
16+
"title": "Name",
17+
"description": "Optional name of the data object mapping list.",
18+
"type": "string"
19+
},
20+
"classifications": {
21+
"$id": "#/definitions/dataObjectMappings/properties/classifications",
22+
"title": "Classifications",
23+
"description": "Classification for the data object mapping list.",
24+
"type": [ "array", "null" ],
25+
"items": {
26+
"$ref": "#/definitions/dataClassification"
27+
},
28+
"minItems": 0,
29+
"uniqueItems": true
30+
},
31+
"extensions": {
32+
"$id": "#/definitions/dataObjectMappings/properties/extensions",
33+
"description": "Key/Value pair extension object.",
34+
"type": [ "array", "null" ],
35+
"items": {
36+
"$ref": "#/definitions/extension"
37+
},
38+
"minItems": 0,
39+
"uniqueItems": true
1340
}
1441
},
1542
"definitions": {

0 commit comments

Comments
 (0)