MinimalCleanArch.Validation 0.1.18-preview

This is a prerelease version of MinimalCleanArch.Validation.
dotnet add package MinimalCleanArch.Validation --version 0.1.18-preview
                    
NuGet\Install-Package MinimalCleanArch.Validation -Version 0.1.18-preview
                    
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="MinimalCleanArch.Validation" Version="0.1.18-preview" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MinimalCleanArch.Validation" Version="0.1.18-preview" />
                    
Directory.Packages.props
<PackageReference Include="MinimalCleanArch.Validation" />
                    
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 MinimalCleanArch.Validation --version 0.1.18-preview
                    
#r "nuget: MinimalCleanArch.Validation, 0.1.18-preview"
                    
#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 MinimalCleanArch.Validation@0.1.18-preview
                    
#: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=MinimalCleanArch.Validation&version=0.1.18-preview&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=MinimalCleanArch.Validation&version=0.1.18-preview&prerelease
                    
Install as a Cake Tool

MinimalCleanArch.Validation

Validation components for MinimalCleanArch.

Version

  • Current preview: 0.1.18-preview (net9.0, net10.0). Latest stable: 0.1.17.

Why Use It

  • register FluentValidation validators with short, MCA-oriented extension methods
  • plug validators into the MCA Minimal API pipeline without repeating setup code across hosts
  • keep validator discovery and registration consistent between generated apps and hand-built applications

When to Use It

  • use it when your API project relies on FluentValidation and MCA endpoint validation
  • keep it at the API/host or composition-root boundary where validators are registered
  • skip it if you are not using FluentValidation or you are not using the MCA HTTP pipeline

Dependency Direction

  • Depends on: MinimalCleanArch, MinimalCleanArch.Extensions
  • Typically referenced by: API/host projects or composition roots
  • Do not reference from: domain projects; infrastructure projects generally do not need it
  • Note: this package exists to support host-side validator registration, not domain modeling

Overview

  • FluentValidation registration helpers.
  • Integration with MinimalCleanArch.Extensions endpoint validation.
  • Short registration methods for application validators.

Usage

dotnet add package MinimalCleanArch.Validation --version 0.1.18-preview

Recommended registration:

builder.Services.AddValidationFromAssemblyContaining<CreateTodoCommandValidator>();
builder.Services.AddMinimalCleanArchExtensions();

If you use the higher-level API bootstrap from MinimalCleanArch.Extensions, you can register validators there instead:

builder.Services.AddMinimalCleanArchApi(options =>
{
    options.AddValidatorsFromAssemblyContaining<CreateTodoCommandValidator>();
});

Recommended methods:

  • AddValidation(...) registers validators from one or more assemblies.
  • AddValidationFromAssemblyContaining<T>() registers validators from the assembly containing T.
  • AddMinimalCleanArchValidation(...) and AddMinimalCleanArchValidationFromAssemblyContaining<T>() remain available as compatibility aliases.
Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.18-preview 0 3/12/2026
0.1.17 0 3/12/2026
0.1.17-preview 84 3/8/2026
0.1.16-preview 76 3/7/2026
0.1.15-preview 78 3/3/2026
0.1.14 90 3/2/2026
0.1.14-preview 81 3/1/2026
0.1.13-preview 81 2/28/2026
0.1.12-preview 91 2/22/2026
0.1.11-preview 100 12/27/2025
0.1.10-preview 95 12/27/2025
0.1.9-preview 124 12/21/2025
0.1.8-preview 222 12/15/2025
0.1.7 157 12/14/2025
0.1.7-preview 413 12/11/2025
0.1.6 440 12/9/2025
0.1.6-preview 471 12/9/2025
0.1.5 218 12/6/2025
0.1.4 247 5/26/2025
0.1.3 198 5/25/2025
Loading failed