* Enable validation of specific cultures only for document updates * Only validate explicitly sent cultures in the create validation endpoint * Fix backwards compat (obsolete old method) --------- Co-authored-by: Mads Rasmussen <madsr@hey.com>
19 lines
766 B
C#
19 lines
766 B
C#
using Umbraco.Cms.Core.Models;
|
|
using Umbraco.Cms.Core.Models.ContentEditing;
|
|
|
|
namespace Umbraco.Cms.Core.Services;
|
|
|
|
internal sealed class ContentValidationService : ContentValidationServiceBase<IContentType>, IContentValidationService
|
|
{
|
|
public ContentValidationService(IPropertyValidationService propertyValidationService, ILanguageService languageService)
|
|
: base(propertyValidationService, languageService)
|
|
{
|
|
}
|
|
|
|
public async Task<ContentValidationResult> ValidatePropertiesAsync(
|
|
ContentEditingModelBase contentEditingModelBase,
|
|
IContentType contentType,
|
|
IEnumerable<string?>? culturesToValidate = null)
|
|
=> await HandlePropertiesValidationAsync(contentEditingModelBase, contentType, culturesToValidate);
|
|
}
|