|
| 1 | +# Microsoft.AspNetCore.Http.Abstractions |
| 2 | + |
| 3 | +```diff |
| 4 | + namespace Microsoft.AspNetCore.Http.Metadata |
| 5 | + { |
| 6 | ++ public interface IDisableValidationMetadata |
| 7 | ++ { |
| 8 | ++ } |
| 9 | + } |
| 10 | ++ namespace Microsoft.AspNetCore.Http.Validation |
| 11 | ++ { |
| 12 | ++ public interface IValidatableInfo |
| 13 | ++ { |
| 14 | ++ } |
| 15 | ++ public interface IValidatableInfoResolver |
| 16 | ++ { |
| 17 | ++ } |
| 18 | ++ public abstract class ValidatableParameterInfo : Microsoft.AspNetCore.Http.Validation.IValidatableInfo |
| 19 | ++ { |
| 20 | ++ protected ValidatableParameterInfo(System.Type parameterType, string name, string displayName); |
| 21 | ++ protected abstract System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes(); |
| 22 | ++ public virtual System.Threading.Tasks.Task ValidateAsync(object? value, Microsoft.AspNetCore.Http.Validation.ValidateContext context, System.Threading.CancellationToken cancellationToken); |
| 23 | ++ } |
| 24 | ++ public abstract class ValidatablePropertyInfo : Microsoft.AspNetCore.Http.Validation.IValidatableInfo |
| 25 | ++ { |
| 26 | ++ protected ValidatablePropertyInfo(System.Type declaringType, System.Type propertyType, string name, string displayName); |
| 27 | ++ protected abstract System.ComponentModel.DataAnnotations.ValidationAttribute[] GetValidationAttributes(); |
| 28 | ++ public virtual System.Threading.Tasks.Task ValidateAsync(object? value, Microsoft.AspNetCore.Http.Validation.ValidateContext context, System.Threading.CancellationToken cancellationToken); |
| 29 | ++ } |
| 30 | ++ public sealed class ValidatableTypeAttribute |
| 31 | ++ { |
| 32 | ++ public ValidatableTypeAttribute(); |
| 33 | ++ } |
| 34 | ++ public abstract class ValidatableTypeInfo : Microsoft.AspNetCore.Http.Validation.IValidatableInfo |
| 35 | ++ { |
| 36 | ++ protected ValidatableTypeInfo(System.Type type, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Http.Validation.ValidatablePropertyInfo> members); |
| 37 | ++ public virtual System.Threading.Tasks.Task ValidateAsync(object? value, Microsoft.AspNetCore.Http.Validation.ValidateContext context, System.Threading.CancellationToken cancellationToken); |
| 38 | ++ } |
| 39 | ++ public sealed class ValidateContext |
| 40 | ++ { |
| 41 | ++ public ValidateContext(); |
| 42 | ++ public int CurrentDepth { get; set; } |
| 43 | ++ public string CurrentValidationPath { get; set; } |
| 44 | ++ public System.ComponentModel.DataAnnotations.ValidationContext? ValidationContext { get; set; } |
| 45 | ++ public System.Collections.Generic.Dictionary<string, string[]>? ValidationErrors { get; set; } |
| 46 | ++ public required Microsoft.AspNetCore.Http.Validation.ValidationOptions ValidationOptions { get; set; } |
| 47 | ++ } |
| 48 | ++ public class ValidationOptions |
| 49 | ++ { |
| 50 | ++ public ValidationOptions(); |
| 51 | ++ public bool TryGetValidatableParameterInfo(System.Reflection.ParameterInfo parameterInfo, out Microsoft.AspNetCore.Http.Validation.IValidatableInfo? validatableInfo); |
| 52 | ++ public bool TryGetValidatableTypeInfo(System.Type type, out Microsoft.AspNetCore.Http.Validation.IValidatableInfo? validatableTypeInfo); |
| 53 | ++ public int MaxDepth { get; set; } |
| 54 | ++ public System.Collections.Generic.IList<Microsoft.AspNetCore.Http.Validation.IValidatableInfoResolver> Resolvers { get; } |
| 55 | ++ } |
| 56 | ++ } |
| 57 | ++ namespace Microsoft.Extensions.DependencyInjection |
| 58 | ++ { |
| 59 | ++ public static class ValidationServiceCollectionExtensions |
| 60 | ++ { |
| 61 | ++ public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddValidation(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action<Microsoft.AspNetCore.Http.Validation.ValidationOptions>? configureOptions = null); |
| 62 | ++ } |
| 63 | ++ } |
| 64 | +``` |
0 commit comments