Skip to content

Commit

Permalink
Tidy-ups, adding extension to top-level mapping object & ensuring JSD…
Browse files Browse the repository at this point in the history
…L is consistent.
  • Loading branch information
RoelantVos committed Nov 12, 2023
1 parent a283551 commit dcb0c67
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@ public class DataObjectMappingList
public string? Name { get; set; }

/// <summary>
/// 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.
/// </summary>
[JsonPropertyName("classifications")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public List<DataClassification>? Classifications { get; set; }

/// <summary>
/// The collection of extension Key/Value pairs.
/// </summary>
[JsonPropertyName("extensions")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public List<Extension>? Extensions { get; set; }
}
27 changes: 27 additions & 0 deletions GenericInterface/interfaceDataWarehouseAutomationMetadataV2_0.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit dcb0c67

Please sign in to comment.