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:
Nikolaj Geisle
2023-03-13 15:03:54 +01:00
committed by GitHub
parent c0975f341c
commit 5ac0087013
3 changed files with 4 additions and 4 deletions

View File

@@ -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();

View File

@@ -7267,7 +7267,7 @@
"type": "string",
"nullable": true
},
"data": {
"values": {
"type": "array",
"items": {
"oneOf": [

View File

@@ -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!;
}