CodingFlow.FluentValidation.VogenExtensions
0.1.0
See the version list below for details.
dotnet add package CodingFlow.FluentValidation.VogenExtensions --version 0.1.0
NuGet\Install-Package CodingFlow.FluentValidation.VogenExtensions -Version 0.1.0
<PackageReference Include="CodingFlow.FluentValidation.VogenExtensions" Version="0.1.0" />
<PackageVersion Include="CodingFlow.FluentValidation.VogenExtensions" Version="0.1.0" />
<PackageReference Include="CodingFlow.FluentValidation.VogenExtensions" />
paket add CodingFlow.FluentValidation.VogenExtensions --version 0.1.0
#r "nuget: CodingFlow.FluentValidation.VogenExtensions, 0.1.0"
#:package CodingFlow.FluentValidation.VogenExtensions@0.1.0
#addin nuget:?package=CodingFlow.FluentValidation.VogenExtensions&version=0.1.0
#tool nuget:?package=CodingFlow.FluentValidation.VogenExtensions&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;
Integrations
Vogen
Install the Vogen extensions nuget package, CodingFlow.FluentValidation.VogenExtensions
| 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
- CodingFlow.FluentValidation (>= 0.1.0)
- Vogen (>= 8.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
0.1.0
Initial release.