예제 #1
0
        public static async Task ValidatePartialAsync(this ContentData data, Schema schema, PartitionResolver partitionResolver, IList <ValidationError> errors)
        {
            var validator = new ContentValidator(schema, partitionResolver);

            await validator.ValidatePartialAsync(data);

            foreach (var error in validator.Errors)
            {
                errors.Add(error);
            }
        }
예제 #2
0
        public static async Task ValidatePartialAsync(this ContentData data, Schema schema, HashSet <Language> languages, IList <ValidationError> errors)
        {
            var validator = new ContentValidator(schema, languages);

            await validator.ValidatePartialAsync(data);

            foreach (var error in validator.Errors)
            {
                errors.Add(error);
            }
        }