CodingFlow.FluentValidation
0.1.0
See the version list below for details.
dotnet add package CodingFlow.FluentValidation --version 0.1.0
NuGet\Install-Package CodingFlow.FluentValidation -Version 0.1.0
<PackageReference Include="CodingFlow.FluentValidation" Version="0.1.0" />
<PackageVersion Include="CodingFlow.FluentValidation" Version="0.1.0" />
<PackageReference Include="CodingFlow.FluentValidation" />
paket add CodingFlow.FluentValidation --version 0.1.0
#r "nuget: CodingFlow.FluentValidation, 0.1.0"
#:package CodingFlow.FluentValidation@0.1.0
#addin nuget:?package=CodingFlow.FluentValidation&version=0.1.0
#tool nuget:?package=CodingFlow.FluentValidation&version=0.1.0
CodingFlow Fluent Validation
Minimal, easy to use fluent validations API inspired by FluentValidation.
When you need to validate any type, even primitives in an easy and direct way, this library fits the bill. FluentValidation by Jeremy Skinner requires creating a separate validator class to register validation rules, and then instantiating the validator class. This library on the other hand, let's you add validation directly.
Usage
After installing the nuget package from Nuget.org, add this using statement to the file where you want to validate:
using static CodingFlow.FluentValidation.Validations;
Then you can add validation like this:
var input = 11;
var result = RuleFor(input)
.Between(4, 6)
.Result();
// Check results
bool isValid = result.IsValid;
var errors = result.Errors;
| 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
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CodingFlow.FluentValidation:
| Package | Downloads |
|---|---|
|
CodingFlow.FluentValidation.VogenExtensions
Vogen extensions for CodingFlow Fluent Validation. |
GitHub repositories
This package is not used by any popular GitHub repositories.
0.1.0
Initial release.