Skip to content

Commit d9d6646

Browse files
AndyButlandkjac
andauthored
Allow save of empty translations for dictionary items (#18980)
* Allow save of empty translations for dictionary items. * Updated Open API schema to match request model update --------- Co-authored-by: kjac <[email protected]>
1 parent 947afdb commit d9d6646

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Umbraco.Cms.Api.Management/OpenApi.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37181,7 +37181,6 @@
3718137181
"type": "string"
3718237182
},
3718337183
"translation": {
37184-
"minLength": 1,
3718537184
"type": "string"
3718637185
}
3718737186
},
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.ComponentModel.DataAnnotations;
1+
using System.ComponentModel.DataAnnotations;
22

33
namespace Umbraco.Cms.Api.Management.ViewModels.Dictionary;
44

@@ -7,6 +7,5 @@ public class DictionaryItemTranslationModel
77
[Required]
88
public string IsoCode { get; set; } = string.Empty;
99

10-
[Required]
1110
public string Translation { get; set; } = string.Empty;
1211
}

0 commit comments

Comments
 (0)