Xpandables.Validations 11.0.0

dotnet add package Xpandables.Validations --version 11.0.0
                    
NuGet\Install-Package Xpandables.Validations -Version 11.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xpandables.Validations" Version="11.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Xpandables.Validations" Version="11.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Xpandables.Validations" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Xpandables.Validations --version 11.0.0
                    
#r "nuget: Xpandables.Validations, 11.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Xpandables.Validations@11.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Xpandables.Validations&version=11.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Xpandables.Validations&version=11.0.0
                    
Install as a Cake Tool

πŸ“¦ System.Validations

License .NET Version NuGet Version NuGet Downloads

Validation and specification library extending DataAnnotations: generated attribute validators, composite validators, one lookup, specification combinators β€” Native AOT by source generation

Getting Started β€’ Validators β€’ Generated validators β€’ Resolution β€’ Specifications β€’ DI Registration


πŸ“‹ Overview

Xpandables.Validations extends System.ComponentModel.DataAnnotations with a validator hierarchy (IValidator<T>, Validator<T>, ICompositeValidator<T>), validators generated at compile time for your DataAnnotations rules, one lookup (IValidatorProvider), and a Specification pattern (ISpecification<T>, Specification<T>).

It is Native AOT compatible: the validation path uses no reflection. Xpandables.Generators comes with the package and generates, in your project, the attribute validators and AddX{Assembly}Validators().


πŸš€ Getting Started

dotnet add package Xpandables.Validations
using System.ComponentModel.DataAnnotations;
using Microsoft.Extensions.DependencyInjection;

public sealed record CreateUser : IRequiresValidation
{
    [Required, StringLength(50)] public string? Name { get; init; }
    [Required, EmailAddress] public string? Email { get; init; }
}

builder.Services.AddXMyAppValidators(); // generated for the assembly "MyApp"

// In a request scope:
IValidator validator = scope.ServiceProvider.GetRequiredService<IValidatorProvider>().GetRequiredValidator(typeof(CreateUser));
IReadOnlyCollection<ValidationResult> errors = validator.Validate(new CreateUser { Name = "Ada" });

IRequiresValidation is an empty marker interface: every validated type implements it, and every validator contract is constrained to it (where T : class, IRequiresValidation).


βœ”οΈ Validators

Type Role
IValidator Non-generic view: Order, Validate(object), ValidateAsync(object, CancellationToken)
IValidator<T> Validate(T) and ValidateAsync(T, CancellationToken); its IValidator members cast the instance to T
Validator<T> Base class: Order is 0 (virtual), Validate is abstract, ValidateAsync checks the token and calls Validate
ICompositeValidator<T> The validator that runs every validator registered for T
CompositeValidator<T> The default ICompositeValidator<T>
public sealed class CreateUserValidator(IUserRepository users) : Validator<CreateUser>
{
    public override int Order => 10; // lower runs first

    public override IReadOnlyCollection<ValidationResult> Validate(CreateUser instance) =>
        users.Exists(instance.Email) ? [new ValidationResult("The e-mail is taken.", [nameof(CreateUser.Email)])] : [];

    // ValidateAsync calls Validate by default; override it for asynchronous rules.
}
  • A validator returns an empty collection when the instance is valid, and one ValidationResult per failure.
  • A validator takes its services in its constructor: it is built by the container (transient), in the caller's scope, so a scoped DbContext is fine.
  • ValidateAsync receives a CancellationToken: validators that reach a database or a remote service should honour it; purely in-memory ones may ignore it. The default implementation throws OperationCanceledException when the token is already cancelled.
  • A validator used concurrently must be thread-safe; the container builds a new one for each resolution.

Composite Validator

CompositeValidator<T> runs every validator registered for a type, in Order, and merges their results. It is what ICompositeValidator<T> resolves to, and what the provider returns when a type has more than one validator: the generated attribute validator runs first, and your custom validators run once the attribute rules pass, whichever path (the mediator's ValidationBehavior or the endpoint filter of Xpandables.AspNetCore.Net) validates the request.

ICompositeValidator<CreateUser> validator = scope.ServiceProvider.GetRequiredService<ICompositeValidator<CreateUser>>();

// Or built by hand, optionally validating in parallel (only with validators that share no scoped state)
var composite = new CompositeValidator<CreateUser>([new CreateUserValidator(users)], enableParallelValidation: true);
  • The validators are sorted by Order once, when the composite is built; results are concatenated in that order.
  • Validate runs them one after the other. ValidateAsync does the same and checks the token between validators, so a cancelled sequence stops at the next validator.
  • With enableParallelValidation: true, ValidateAsync starts every validator at once and awaits them together (Task.WhenAll); their execution order is not defined. Validate stays sequential.
  • When the generated attribute validator reports errors, the custom validators do not run (a rule never sees a member its attributes require missing, and a client is not answered with a cascade of follow-up errors), except those marked [RunsAfterFailedAttributes]. In parallel mode the attribute validator runs first, then the others together.
  • A null instance throws ArgumentNullException; a null validator collection throws ArgumentNullException at construction.

A type that implements IRequiresValidation and has no validator is a configuration error: CompositeValidator<T> (when it validates) and GetRequiredValidator throw InvalidOperationException naming the registration to add (services.AddXValidator<T, TValidator>() or the generated AddX{Assembly}Validators()), so a request is never let through unvalidated. XVA004 reports it at compile time in an application that validates (it declares a validator, references a project that does, or references Xpandables.AspNetCore.Net), for a type of the application or of a project it references: the requests may live in a contracts project and their validators in a project that references it. A client that shares the contracts only to send the requests is not checked; <XpandablesValidationCheck> (true or false) forces the choice in the rare project the detection gets wrong. A type whose validator a custom IValidatorProvider supplies at run time is marked [ValidatorResolvedAtRuntime], which XVA004 skips. The run-time InvalidOperationException applies when the AddX{Assembly}Validators() of the validator's assembly is not called, when XVA004 is suppressed, when the provider of a marked type supplies nothing, and for generic or inaccessible validated types.

A validator marked [ReplacesAttributeValidation] replaces the generated attribute validator of its type: the attributes stay for OpenAPI and model metadata, the validator checks what they declare, and each rule is reported once. The generated validator is then not registered, whichever project declares the validator (see Registration).

A validator marked [RunsAfterFailedAttributes] (inherited) runs even when the attribute rules failed. The mark is compiled into the generated attribute validator: it applies to the validators AddX{Assembly}Validators() of the type's assembly registers, not to one of another assembly, a generic validator closed by hand, or one excluded from registration.

MultipleValidationException, which carries several ValidationResults (the validation behavior of Xpandables.AspNetCore.Net throws it), lives in Xpandables.Net.


βš™οΈ Generated validators

For every type of your project that implements IRequiresValidation and declares DataAnnotations rules β€” validation attributes on its public properties or on the type, or IValidatableObject β€” Xpandables.Generators emits a validator with the semantics of Validator.TryValidateObject(instance, context, results, validateAllProperties: true), without reflection:

  1. the properties (inherited ones included): [Required] first and, when it fails, nothing else for that property; then every other attribute;
  2. only when step 1 found nothing: the type's attributes;
  3. only when steps 1–2 found nothing: IValidatableObject.Validate.
  • The attributes are rebuilt at compile time (constructor and named arguments, your own ValidationAttribute types included). Attributes on an overridden property or on a base type apply as their [AttributeUsage] says (Inherited, AllowMultiple), as with reflection.
  • The display name comes from [Display(Name = …)] (resource types included), else the property name; for the type's attributes and IValidatableObject, from the type's [Display], else the type name. [DisplayName] is not read (as by ValidationContext).
  • The ValidationContext carries the caller's scoped IServiceProvider: a custom attribute or IValidatableObject can call validationContext.GetService(...).
  • Nested objects are not validated recursively (as TryValidateObject).
  • An attribute whose constructor is annotated RequiresUnreferencedCode β€” [Compare(nameof(Password))] and [Range(typeof(decimal), "0", "9")] are the common ones β€” keeps its trim warning (IL2026) in your trimmed or Native AOT build: the generated code calls the constructor as you wrote it, and a warning raised in generated code cannot be suppressed at the attribute (use <NoWarn> or .editorconfig). They still work: [Compare] reads the other property, which the validator keeps. An attribute marked [Experimental] likewise raises its diagnostic id again in the generated code (suppress it with <NoWarn>); a constructor marked [Obsolete] (warning form) is not reported again.
  • The validator of T validates T's rules: given an instance of a derived type through Validate(T), it does not validate the derived type's own rules (TryValidateObject reads the runtime type). The lookup by runtime type (GetRequiredValidator(instance.GetType()), as the endpoint filter does) finds the derived type's validator.
  • Static properties, indexers and properties without a public getter are not validated (as by the BCL). Abstract and static classes get no validator.
  • The messages of failed attributes come from the framework, in English. Register an IValidationMessageProvider to supply them (see Messages).
  • The generated validator runs first (Order is int.MinValue): its errors come before those of your validators.
  • A record's positional parameter attribute targets the parameter, not the property, and is ignored (as by the BCL): write [property: Required].
  • The generated validators are internal sealed classes in System.ComponentModel.DataAnnotations.Generated; they call GeneratedValidation, a public helper that is not meant to be called directly.

Asynchronous rules (.NET 11)

A rule that needs I/O β€” a database lookup, a remote check β€” is an AsyncValidationAttribute (override IsValidAsync) or an IAsyncValidatableObject (ValidateAsync). For a type with such a rule, the generated validator also implements ValidateAsync with the semantics of Validator.TryValidateObjectAsync(…, validateAllProperties: true):

  1. the properties: [Required] first and, when it fails, nothing else for that property; then the synchronous attributes; then the asynchronous ones, awaited in declaration order;
  2. only when step 1 found nothing: the type's attributes, synchronous then asynchronous;
  3. only when steps 1–2 found nothing: IAsyncValidatableObject.ValidateAsync β€” not IValidatableObject.Validate β€” or IValidatableObject.Validate for a type that implements only the synchronous interface.
public sealed class UniqueEmailAttribute : AsyncValidationAttribute
{
    protected override ValidationResult? IsValid(object? value, ValidationContext context) =>
        throw new InvalidOperationException("Validate this attribute with IsValidAsync.");

    protected override async Task<ValidationResult?> IsValidAsync(object? value, ValidationContext context, CancellationToken cancellationToken) =>
        await context.GetRequiredService<IUserStore>().EmailExistsAsync((string?)value, cancellationToken)
            ? new ValidationResult("That e-mail is already registered.", [context.MemberName!])
            : ValidationResult.Success;
}
  • The mediator's ValidationBehavior and the endpoint validation (Xpandables.AspNetCore.Net) call ValidateAsync: the asynchronous rules run there with the request's cancellation token.
  • Validate keeps the synchronous path: an asynchronous rule's synchronous form runs there, and by .NET's convention it throws. Call ValidateAsync for a type with asynchronous rules.
  • Unlike TryValidateObjectAsync, which may overlap the asynchronous rules of different properties, the generated validator awaits them one after the other: the errors keep the declaration order.
  • A type without an asynchronous rule gets no ValidateAsync of its own: its asynchronous form is its synchronous validation, completed at once.

Error keys

The keys of validation errors are the JSON names the client sent. The generated attribute validator names a property with [JsonPropertyName] by its JSON path ($.order_reference), which is kept as written; any other member name goes through the naming policy of the application's JSON options (camelCase by default: CustomerName β†’ customerName, Lines[0].Quantity β†’ lines[0].quantity). A hand-written validator names a [JsonPropertyName] member the same way:

[new ValidationResult("The reference is taken.", ["$.order_reference"])]

Messages

The framework's attribute messages are English only. A generated validator asks the IValidationMessageProvider registered in the container for the message of each failed attribute that has no message of its own (ErrorMessage and ErrorMessageResourceType both null; custom attributes included, even one that overrides FormatErrorMessage):

public sealed class FrenchMessages : IValidationMessageProvider
{
    public string? GetMessage(ValidationAttribute attribute, ValidationContext context) => attribute switch
    {
        RequiredAttribute => $"Le champ {context.DisplayName} est obligatoire.",
        RangeAttribute range => $"Le champ {context.DisplayName} doit Γͺtre entre {range.Minimum} et {range.Maximum}.",
        _ => null, // keeps the attribute's own message
    };
}

services.AddSingleton<IValidationMessageProvider, FrenchMessages>();
  • An attribute with its own message keeps it; a provider that returns null keeps the attribute's message.
  • The provider is resolved from the ValidationContext's services, the request's scope, and only when an attribute fails. One that throws propagates to the caller.
  • Hand-written validators write their own messages.
  • A provider that holds templates rather than finished messages lets the attribute fill its own placeholders with ValidationAttribute.FormatMessage (.NET 11): RangeAttribute => attribute.FormatMessage("{0} doit Γͺtre entre {1} et {2}.", context.DisplayName).

Registration

AddX{Assembly}Validators() (class {Assembly}ValidatorRegistrations, namespace Microsoft.Extensions.DependencyInjection) registers, through AddXValidator<T, TValidator>() (transient, unless an earlier AddXValidator<T, TValidator>(lifetime) chose another lifetime; a pair is registered once, also after a decorator from Xpandables.Net wrapped it):

  • every validator class of the assembly: a non-abstract, non-generic class implementing IValidator<T> for a closed T (once per IValidator<T> it implements), with a public constructor; ICompositeValidator<T> implementations are left out;
  • every generated attribute validator, except that of a type whose validator in the same assembly is marked [ReplacesAttributeValidation] (the attribute is inherited by derived validators, and a validator of several types replaces each, and holds on a validator also marked [ExcludeFromRegistration]). A marked validator of another project than the type is registered with AddXReplacingValidator<T, TValidator>(): it removes the attribute validator the type's project registers and keeps it from being added later, so the projects' methods can be called in any order. Register a marked validator excluded from registration the same way.

The registrations are closed types; calling the method twice registers nothing more. {Assembly} is the assembly name as an identifier: dots dropped with each segment capitalized (My.App β†’ AddXMyAppValidators()). The method is generated when the assembly has something to register, and always in an executable project. The application calls each library's method too: services.AddXMyLibraryValidators().

A validator or validated type marked [Obsolete] (warning form) or [Experimental] is registered, the generated file disabling the ids it raises; one marked [Obsolete] as an error cannot be referenced and is reported (XVA001).

Diagnostic Severity Meaning
XVA001 Warning A validator class or a validated type with rules is not accessible from the generated code (private nested, file-local), is [Obsolete] as an error, validates a type the generated code cannot reference, or (a validator) has no public constructor; it is not registered.
XVA002 Warning A validator class or a validated type with rules is generic; register its closed forms with AddXValidator<T, TValidator>().
XVA003 Error An attribute cannot be rebuilt by the generated code (inaccessible constructor or type, an argument that cannot be written as C#); the type gets no attribute validator; not reported when the type's validator replaces attribute validation.
XVA004 Error Reported by an application (an executable project) that validates: one that declares a validator, references a project that declares one (internal validators included), or references Xpandables.AspNetCore.Net, whose endpoint filters validate requests. A client that only sends the shared requests (serialized, never validated) is not checked, nor is a library: its validator may live in a project that references it. The MSBuild property <XpandablesValidationCheck>true</XpandablesValidationCheck> forces the check (a server with no validator yet, or any project), false turns it off. Checked: a concrete, non-generic, accessible class implementing IRequiresValidation, of the application or of a referenced project, has no usable rule (attributes on public readable instance properties or on the type, IValidatableObject) and no validator in the application nor in a referenced project (one marked [ExcludeFromRegistration] counts); an attribute on a positional record parameter needs [property: …]. Each project records, as [assembly: AssemblyMetadata] entries, the types its validators validate and the types it leaves without rule or validator; the application reads them and reports an imported type at no source location, naming the type and its assembly, one diagnostic per type, ordered by assembly then type. Each validation of such a type throws InvalidOperationException. Mark the type [ValidatorResolvedAtRuntime] when a custom IValidatorProvider supplies its validator; suppress it when the validator is registered by hand in a form the generator cannot relate to the type (an open generic validator closed with AddXValidator, a validator of a base type or interface), project-wide with <NoWarn>$(NoWarn);XVA004</NoWarn> in the application or dotnet_diagnostic.XVA004.severity = none in .editorconfig.
XGN001 Warning A referenced assembly whose name maps to the same identifier already declares the registration class.

πŸ” Resolution

IValidatorProvider (scoped) finds the validator of a type: every validator registered for it, built in the caller's scope.

IValidatorProvider validators = scope.ServiceProvider.GetRequiredService<IValidatorProvider>();

IValidator? byType = validators.TryGetValidator(typeof(CreateUser)); // null when none is registered
IValidator? generic = validators.TryGetValidator<CreateUser>();
IValidator required = validators.GetRequiredValidator(typeof(CreateUser)); // throws when none is registered
  • No validator: null (GetRequiredValidator throws InvalidOperationException). One validator: that validator. Several: a CompositeValidator<T> over them (sequential).
  • TryGetValidator(Type) throws ArgumentException for a type that does not implement IRequiresValidation.
  • The lookup goes through the registered IValidatorResolvers (one ValidatorResolver<T> per validated type, registered by AddXValidator), indexed once by type; the last resolver registered for a type wins. The resolver returns every IValidator<T> service of the type. A validator registered as a plain IValidator<T> service, without AddXValidator, adds no resolver: when no other validator of T is registered with AddXValidator, the provider does not find it (an injected ICompositeValidator<T>, once registered, does run it).
  • IValidatorResolver exposes TargetType and Resolve(IServiceProvider); implement IValidatorResolver<T> to get TargetType for free.

πŸ“‹ Specifications

Specification<User> named = new(u => u.Name != null);
Specification<User> adult = new(u => u.Age > 17);

// Combine
ISpecification<User> both = Specification.All(named, adult);
ISpecification<User> either = Specification.Any(named, adult);
ISpecification<User> notAdult = Specification.Not(adult);
ISpecification<User> combined = named & adult;   // operators on Specification<T>: &, |, !

// The factory methods return ISpecification<T>: combine those with All, Any, Not, And, AndAlso, Or, OrElse
ISpecification<User> grown = Specification.GreaterThan<User, int>(u => u.Age, 17).And(Specification.IsNotNull<User, string>(u => u.Name));

// Evaluate: the predicate is compiled once per specification
bool ok = adult.IsSatisfiedBy(user);
IEnumerable<User> adults = users.Where(adult);
int count = users.Count(adult);
var predicate = (Func<User, bool>)adult;         // explicit

// IQueryable: the expression is translated by the provider
IQueryable<User> query = dbContext.Users.Where(adult);
  • ISpecification<T> exposes Expression and IsSatisfiedBy(T); on Specification<T>, IsSatisfiedBy(null) throws ArgumentNullException.
  • Specification<T> compiles its expression once, on first evaluation, and caches the delegate (thread-safe: a race compiles twice at worst, one result is kept). An ISpecification<T> of your own is compiled on each LINQ call.
  • new Specification<T>() is always satisfied.
  • A specification converted from a Func<T, bool> (implicit conversion) keeps the delegate as its predicate; its expression only invokes the delegate, so use an expression for IQueryable.
  • Conversions: implicit from Expression<Func<T, bool>> and Func<T, bool>; explicit to Expression<Func<T, bool>> and Func<T, bool>.
  • Two specifications are equal when they hold the same expression instance (the cached delegate takes no part).
  • Combining with a null operand throws ArgumentNullException; combining with an ExpressionType other than And, AndAlso, Or, OrElse throws InvalidOperationException.
  • Combined expressions share one parameter, so a query provider can translate them.

Factory methods (Specification)

Method Description
Equal<T, TValue>(selector, value) / NotEqual<T, TValue>(selector, value) Property equals / differs from the value
GreaterThan<T, TValue>(selector, value) / LessThan<T, TValue>(selector, value) Comparison with the value (TValue : IComparable<TValue>): the type's > / < operator, or CompareTo(value) against 0 for a type without one (string)
IsNull<T, TValue>(selector) / IsNotNull<T, TValue>(selector) Property is / is not null (TValue : class)
Contains<T>(selector, value, comparisonType) / StartsWith<T>(…) / EndsWith<T>(…) String tests; comparisonType defaults to StringComparison.Ordinal; a null value throws ArgumentNullException
True<T>() / False<T>() Always / never satisfied
FromExpression<T>(expression) / ToExpression<T>(specification) Wrap an expression / read a specification's expression

Combinators

Method Operator Description
Specification.And(a, b) / a.And(b) & Both, evaluated without short-circuit (ExpressionType.And)
Specification.AndAlso(a, b) / a.AndAlso(b) Both, with short-circuit (ExpressionType.AndAlso)
Specification.Or(a, b) / a.Or(b) \| Either, evaluated without short-circuit (ExpressionType.Or)
Specification.OrElse(a, b) / a.OrElse(b) Either, with short-circuit (ExpressionType.OrElse)
Specification.Not(a) / a.Not() ! Negation
Specification.All(specs) / specs.AllOf() Every specification, with short-circuit (AndAlso); none given: always satisfied
Specification.Any(specs) / specs.AnyOf() At least one, with short-circuit (OrElse); none given: never satisfied

On Specification<T>, And(expression)/AndAlso(expression) and Or(expression)/OrElse(expression) combine with an expression as their specification overloads do: And/Or without short-circuit, AndAlso/OrElse with it. expression.ToSpecification() wraps an expression.

LINQ extensions (SpecificationExtensions)

Method Description
Where(spec) Filters
Any(spec) / All(spec) / Count(spec) As the LINQ operators
First(spec) / FirstOrDefault(spec) / Single(spec) / SingleOrDefault(spec) As the LINQ operators (same exceptions)

Each operator has an IQueryable<T> overload, which passes the specification's expression to the query provider (to SQL with Entity Framework Core: nothing is tested in memory), and an IEnumerable<T> overload, which uses the compiled predicate.


πŸ”§ DI Registration

Method Registers Lifetime
AddX{Assembly}Validators() (generated) Every validator of the assembly and its generated attribute validators β€”
AddXValidator<T, TValidator>() IValidator<T> β†’ TValidator, the ValidatorResolver<T>, the composite and the default provider; idempotent (TryAddEnumerable / TryAdd) Validator transient, resolver singleton
AddXReplacingValidator<T, TValidator>() As AddXValidator, for a validator marked [ReplacesAttributeValidation]: removes the generated attribute validator of T registered before, and keeps one registered after from being added Validator transient, resolver singleton
AddXCompositeValidator<T>() ICompositeValidator<T> β†’ CompositeValidator<T>, unless one is registered Scoped
AddXValidatorProvider() The default IValidatorProvider, unless one is registered Scoped
AddXValidatorProvider<TProvider>() TProvider as the IValidatorProvider, replacing any earlier one Scoped
AddXValidatorProvider(instance) instance as the IValidatorProvider, replacing any earlier one Singleton

Every method throws ArgumentNullException for a null argument and returns the IServiceCollection for chaining.


πŸ“¦ Package Contents

Namespace Types
System.ComponentModel.DataAnnotations IRequiresValidation, IValidationMessageProvider, ReplacesAttributeValidationAttribute, ValidatorResolvedAtRuntimeAttribute, AttributeValidator<T> (for the generated code), RunsAfterFailedAttributesAttribute, IValidator, IValidator<T>, ICompositeValidator<T>, Validator<T>, CompositeValidator<T>, IValidatorProvider, ValidatorProviderExtensions, IValidatorResolver, IValidatorResolver<T>, ValidatorResolver<T>, GeneratedValidation (for the generated code), ISpecification<T>, Specification, Specification<T>, SpecificationExtensions
Microsoft.Extensions.DependencyInjection ValidatorServiceCollectionExtensions

πŸ“„ License

Apache License 2.0 β€” see the LICENSE file for details.


<div align="center">

Built with ❀️ using .NET 11

⬆ back to top

</div>

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Xpandables.Validations:

Package Downloads
Xpandables.AspNetCore.Net

ASP.NET Core minimal API integration of the Xpandables libraries: Result to HTTP responses and problem details, endpoint filters, routes, request context, pipeline behaviors and DI extensions; Native AOT compatible.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.0 0 11/29/2026