* 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
752 B
C#
19 lines
752 B
C#
using Umbraco.Cms.Core.Models;
|
|
using Umbraco.Cms.Core.Models.ContentEditing;
|
|
|
|
namespace Umbraco.Cms.Core.Services;
|
|
|
|
internal sealed class MediaValidationService : ContentValidationServiceBase<IMediaType>, IMediaValidationService
|
|
{
|
|
public MediaValidationService(IPropertyValidationService propertyValidationService, ILanguageService languageService)
|
|
: base(propertyValidationService, languageService)
|
|
{
|
|
}
|
|
|
|
public async Task<ContentValidationResult> ValidatePropertiesAsync(
|
|
ContentEditingModelBase contentEditingModelBase,
|
|
IMediaType mediaType,
|
|
IEnumerable<string?>? culturesToValidate = null)
|
|
=> await HandlePropertiesValidationAsync(contentEditingModelBase, mediaType, culturesToValidate);
|
|
}
|