The Jeninnet.Validation Book
This book explains Jeninnet.Validation from the first package reference to production operation. It is written for application developers, library authors, and teams migrating from another validation stack.
Reading paths
New to the library
- Best C# validation libraries in 2026
- Why Jeninnet?
- Introduction
- Installation
- Quick start
- Mental model
- Fluent authoring or attribute authoring
Integrating with a host
- ASP.NET Core
- MediatR
- DataAnnotations
- Blazor
- INotifyDataErrorInfo (WPF, MAUI, Avalonia)
- HotChocolate GraphQL
- gRPC
- JSON Schema, OpenAPI, and client rules
- Dependency injection and lifetimes
- Error handling
- Lifecycle hooks
Migrating
Operating
- Performance
- AOT and trimming
- Coverage and quality
- Troubleshooting
- Production checklist
- Security and data exposure
- Swashbuckle 11 and .NET 11 migration
Table of contents
Part 1 — Getting started
- Best C# validation libraries in 2026
- Why Jeninnet?
- Introduction
- Installation
- Quick start
- Mental model
Part 2 — Guides
- Fluent authoring
- Attribute authoring
- Rules and messages
- Rule sets and cascade
- Conditions and dependent rules
- Collections and nesting
- Custom rules
- ASP.NET Core
- MediatR
- DataAnnotations
- Blazor
- JSON Schema, OpenAPI, and client rules
- Localization
- Testing
- Migration from FluentValidation
- Migration from DataAnnotations
- Dependency injection and lifetimes
- Error handling
- Lifecycle hooks
- Inheritance and polymorphism
- INotifyDataErrorInfo (WPF, MAUI, Avalonia)
- HotChocolate GraphQL
- gRPC
Part 3 — Cookbook
- Minimal API request
- MVC controller
- MediatR command
- Blazor form
- Rule sets and partial updates
- Custom rules with context
- Localized messages
- Testing validators
- Schema, OpenAPI, and client rules
- Desktop view model
Part 4 — Reference
- Architecture
- Core API
- Rule reference
- Diagnostics
- Metadata
- Integration packages
- Compatibility and versions
- Known limitations
- API reference
- Capability parity
Part 5 — Operations
- Performance
- AOT and trimming
- Coverage and quality
- Troubleshooting
- FAQ
- Benchmarks
- Allocation audit
- Production checklist
- Security and data exposure
- Peer benchmarks
- Swashbuckle 11 and .NET 11 migration
Appendix
Conventions
- Code examples target .NET 10 (LTS) and C# 15; the .NET 11 bridge and OpenAPI packages use the same
source with additive
net11.0assets. Validator<T>is the fluent authoring base class.IValidator<T>is the runtime contract shared by fluent and generated validators.- “Generated validator” means a validator emitted by the Roslyn source generator from attributes.
- “Descriptor” means the frozen metadata exposed by
Describe().
The book is the source of truth for usage; the repository README is the source of truth for the package list and build commands.