Do not allow ignoring user start nodes for system data types (#15739)
* Do not allow ignoring start nodes for system data types * Update OpenApi.json * Update src/Umbraco.Cms.Api.Management/Mapping/DataType/DataTypeViewModelMapDefinition.cs Co-authored-by: Sven Geusens <geusens@gmail.com> * Regenerate OpenApi.json --------- Co-authored-by: Sven Geusens <geusens@gmail.com>
This commit is contained in:
@@ -28,6 +28,7 @@ public class DataTypeViewModelMapDefinition : IMapDefinition
|
||||
target.EditorAlias = source.EditorAlias;
|
||||
target.EditorUiAlias = source.EditorUiAlias;
|
||||
target.IsDeletable = source.IsDeletableDataType();
|
||||
target.CanIgnoreStartNodes = source.IsBuildInDataType() is false;
|
||||
|
||||
IConfigurationEditor? configurationEditor = source.Editor?.GetConfigurationEditor();
|
||||
IDictionary<string, object> configuration = configurationEditor?.ToConfigurationEditor(source.ConfigurationData)
|
||||
|
||||
@@ -26459,6 +26459,7 @@
|
||||
},
|
||||
"DataTypeResponseModel": {
|
||||
"required": [
|
||||
"canIgnoreStartNodes",
|
||||
"id",
|
||||
"isDeletable"
|
||||
],
|
||||
@@ -26483,6 +26484,9 @@
|
||||
},
|
||||
"isDeletable": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"canIgnoreStartNodes": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
|
||||
@@ -7,4 +7,6 @@ public class DataTypeResponseModel : DataTypeModelBase
|
||||
public ReferenceByIdModel? Parent { get; set; }
|
||||
|
||||
public bool IsDeletable { get; set; }
|
||||
|
||||
public bool CanIgnoreStartNodes { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user