public static async Task ValidateAsync(this ContentData data, Schema schema, PartitionResolver partitionResolver, IList <ValidationError> errors) { var validator = new ContentValidator(schema, partitionResolver); await validator.ValidateAsync(data); foreach (var error in validator.Errors) { errors.Add(error); } }
public static async Task ValidateAsync(this ContentData data, Schema schema, HashSet <Language> languages, IList <ValidationError> errors) { var validator = new ContentValidator(schema, languages); await validator.ValidateAsync(data); foreach (var error in validator.Errors) { errors.Add(error); } }