ZibStack.NET.Validation 3.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package ZibStack.NET.Validation --version 3.0.4
                    
NuGet\Install-Package ZibStack.NET.Validation -Version 3.0.4
                    
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="ZibStack.NET.Validation" Version="3.0.4">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZibStack.NET.Validation" Version="3.0.4" />
                    
Directory.Packages.props
<PackageReference Include="ZibStack.NET.Validation">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 ZibStack.NET.Validation --version 3.0.4
                    
#r "nuget: ZibStack.NET.Validation, 3.0.4"
                    
#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 ZibStack.NET.Validation@3.0.4
                    
#: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=ZibStack.NET.Validation&version=3.0.4
                    
Install as a Cake Addin
#tool nuget:?package=ZibStack.NET.Validation&version=3.0.4
                    
Install as a Cake Tool

ZibStack.NET.Validation

Source-generated validation for .NET — add validation attributes, get a compile-time Validate() method with no reflection.

Install

dotnet add package ZibStack.NET.Validation

Quick Start

[ZValidate]
public partial class CreateUserRequest
{
    [ZRequired]
    [ZMinLength(2)]
    public string Name { get; set; } = "";

    [ZRequired]
    [ZEmail]
    public string Email { get; set; } = "";

    [ZRange(18, 120)]
    public int Age { get; set; }
}

var result = new CreateUserRequest { Name = "", Email = "bad", Age = 10 }.Validate();
// result.Errors: "Name is required.", "Email must be a valid email address.", ...

Documentation

Full documentation: mistykuu.github.io/ZibStack.NET/packages/validation/

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

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
3.2.4 96 4/21/2026
3.2.3 93 4/21/2026
3.2.2 91 4/21/2026
3.2.1 93 4/21/2026
3.2.0 93 4/21/2026
3.1.5 95 4/20/2026
3.1.4 100 4/20/2026
3.1.3 94 4/20/2026
3.1.2 98 4/20/2026
3.1.1 90 4/20/2026
3.1.0 93 4/20/2026
3.0.6 93 4/20/2026
3.0.5 96 4/20/2026
3.0.4 95 4/20/2026
3.0.3 97 4/20/2026
3.0.2 92 4/20/2026
3.0.1 93 4/20/2026
3.0.0 93 4/20/2026
2.82.0 94 4/20/2026
2.8.1 95 4/18/2026
Loading failed