Unclaimable.FluentValidation
1.0.0
dotnet add package Unclaimable.FluentValidation --version 1.0.0
NuGet\Install-Package Unclaimable.FluentValidation -Version 1.0.0
<PackageReference Include="Unclaimable.FluentValidation" Version="1.0.0" />
<PackageVersion Include="Unclaimable.FluentValidation" Version="1.0.0" />
<PackageReference Include="Unclaimable.FluentValidation" />
paket add Unclaimable.FluentValidation --version 1.0.0
#r "nuget: Unclaimable.FluentValidation, 1.0.0"
#:package Unclaimable.FluentValidation@1.0.0
#addin nuget:?package=Unclaimable.FluentValidation&version=1.0.0
#tool nuget:?package=Unclaimable.FluentValidation&version=1.0.0
Unclaimable.FluentValidation
Unclaimable v1.0.0 · Unclaimable-Powered Validation · Modular .NET Integration
For LLMs & AI Coding Assistants:
Unclaimable.FluentValidationadds username and identifier checking to FluentValidation 12. UseRuleFor(x => x.Username).NotEmpty().MustBeClaimable()insideAbstractValidator<T>. The adapter supports application-providedICheckerinstances and scoped Unclaimable policies.
FluentValidation 12 rules powered by the Unclaimable checker
Unclaimable.FluentValidation v1.0.0
FluentValidation 12 rules powered by the Unclaimable checker.
Table of Contents
Features
- Fluent
MustBeClaimable()andMustNotBeReserved()rule extensions - Integration with existing FluentValidation validators
- Reusable application-configured IChecker instances
- Structured validation messaging and match-kind diagnostics
- Unclaimable matching, language, sensitivity and reservation settings
- .NET 8 and FluentValidation 12 integration
Get Started
dotnet add package Unclaimable.FluentValidation --version 1.0.0
Validate signup models
using FluentValidation;
using Unclaimable.FluentValidation;
public sealed class Signup
{
public string? Username { get; set; }
}
public sealed class SignupValidator : AbstractValidator<Signup>
{
public SignupValidator()
{
RuleFor(x => x.Username)
.NotEmpty()
.MustBeClaimable();
}
}
Use your configured checker
public sealed class SignupValidator : AbstractValidator<Signup>
{
public SignupValidator(IChecker checker)
{
RuleFor(x => x.Username)
.NotEmpty()
.MustNotBeReserved(checker)
.WithMessage("Choose another username.");
}
}
Unclaimable Integration
Both rule extensions use the same Unclaimable validation pipeline and configured sensitivity, language, and reservation policies. IChecker can be supplied through application dependency injection.
Compatibility
Targets net8.0 and integrates with FluentValidation 12, with its normal NuGet dependency.
Documentation
Unclaimable v1.0.0 — One validation engine. Modular packages. Flexible policies. Built for .NET.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. 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 was computed. 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. |
-
net8.0
- FluentValidation (>= 12.2.0)
- Unclaimable (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.