public async Task ValidateInputAsync(NamedContentData data, bool publish) { var validator = new ContentValidator(Partition(), validationContext.AsPublishing(publish), validators, log); await validator.ValidateInputAsync(data); CheckErrors(validator); }