Rename data to values (#13892)
* Rename data to values * Rename data to values * Update OpenApi.json --------- Co-authored-by: Zeegaan <nge@umbraco.dk>
This commit is contained in:
@@ -52,7 +52,7 @@ public class DataTypeViewModelMapDefinition : IMapDefinition
|
||||
IDictionary<string, object> configuration = configurationEditor?.ToConfigurationEditor(source.ConfigurationData)
|
||||
?? new Dictionary<string, object>();
|
||||
|
||||
target.Data = configuration.Select(c =>
|
||||
target.Values = configuration.Select(c =>
|
||||
new DataTypePropertyPresentationModel
|
||||
{
|
||||
Alias = c.Key,
|
||||
@@ -106,7 +106,7 @@ public class DataTypeViewModelMapDefinition : IMapDefinition
|
||||
private IDictionary<string, object> MapConfigurationData<T>(T source, IDataEditor editor) where T : DataTypeModelBase
|
||||
{
|
||||
var configuration = source
|
||||
.Data
|
||||
.Values
|
||||
.Where(p => p.Value is not null)
|
||||
.ToDictionary(p => p.Alias, p => p.Value!);
|
||||
IConfigurationEditor? configurationEditor = editor?.GetConfigurationEditor();
|
||||
|
||||
@@ -7267,7 +7267,7 @@
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"data": {
|
||||
"values": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"oneOf": [
|
||||
|
||||
@@ -8,5 +8,5 @@ public abstract class DataTypeModelBase
|
||||
|
||||
public string? PropertyEditorUiAlias { get; set; }
|
||||
|
||||
public IEnumerable<DataTypePropertyPresentationModel> Data { get; set; } = null!;
|
||||
public IEnumerable<DataTypePropertyPresentationModel> Values { get; set; } = null!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user