FluentValidation alternatives and similar packages
Based on the "Misc" category.
Alternatively, view FluentValidation alternatives based on common mentions on social networks and blogs.
-
Polly
Express transient exception handling policies such as Retry, Retry Forever, Wait andRetry or Circuit Breaker in a fluent manner. (.NET 3.5 / 4.0 / 4.5 / PCL / Xamarin) -
Humanizer
Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities -
ReactJS.NET
ReactJS.NET is a library that makes it easier to use Babel along with Facebook's React and JSX from C#. -
Jint
Javascript interpreter for .NET which provides full ECMA 5.1 compliance and can run on any .NET plaftform. -
YoutubeExplode
Ultimate library for extracting metadata and downloading Youtube videos and playlists. -
Coravel
Near-zero config .NET Core library that makes Task Scheduling, Caching, Queuing, Mailing, Event Broadcasting (and more) a breeze! -
WorkflowEngine
HTML5 Designer, Customizable, Parallel branching, Versioning -
HidLibrary
This library enables you to enumerate and communicate with Hid compatible USB devices in .NET. -
Jurassic
A implementation of the ECMAScript language and runtime. It aims to provide the best performing and most standards-compliant implementation of JavaScript for .NET. -
Warden
Define "health checks" for your applications, resources and infrastructure. Keep your Warden on the watch -
Jot
a library for persisting and restoring application state (a better alternative to .settings files). -
ByteSize
ByteSize is a utility class that makes byte size representation in code easier by removing ambiguity of the value being represented. ByteSize is to bytes what System.TimeSpan is to time. -
Mediator.Net
A simple mediator for .Net for sending command, publishing event and request response with pipelines supported -
SolidSoils4Arduino
C# .NET - Arduino library supporting simultaneous serial ASCII, Firmata and I2C communication -
SystemWrapper
SystemWrapper is .NET library for easier testing of system APIs. -
DeviceDetector.NET
The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model. -
FormHelper
Form & Validation Helper for ASP.NET Core. Form Helper helps you to create ajax forms and validations without writing any javascript code. (Compatible with Fluent Validation) -
Jering.Javascript.NodeJS
Invoke Javascript in NodeJS, from C# -
https://github.com/minhhungit/ConsoleTableExt
Fluent library to create table for .Net console application. -
Outcome.NET
Never write a result wrapper again! Outcome.NET is a simple, powerful helper for methods that return a value, but sometimes also need to return validation messages, warnings, or a success bit. -
FlatMapper
A library to import and export data from and to plain text files in a Linq compatible way. -
NaturalSort.Extension
Extension method for StringComparer that adds support for natural sorting (e.g. "abc1", "abc2", "abc10" instead of "abc1", "abc10", "abc2"). -
trybot
A transient fault handling framework including such resiliency solutions as Retry, Timeout, Fallback, Rate Limit and Circuit Breaker. -
AdaskoTheBeAsT.FluentValidation.MediatR
FluentValidation behavior for MediatR -
Validot
Validot is a performance-first, compact library for advanced model validation. Using a simple declarative fluent interface, it efficiently handles classes, structs, nested members, collections, nullables, plus any relation or combination of them. It also supports translations, custom logic extensions with tests, and DI containers. -
CSScript
CS-Script is a CLR based scripting system which usesC# as a programming language. CS-Script currently targets Microsoft implementation of CLR (.NET 2.0/3.0/3.5/4.0/4.5) with full support on Mono. Comes with many additional features, such as script hosting. -
LINQPad
a C#/VB/F# scratchpad that instantly executes any expression, statement block or program with rich output formatting and a wealth of features. Also lets you interactively query databases in LINQ. [$]
Pixel-Perfect Multi-Platform Applications with C# and XAML
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of FluentValidation or a related project?
README
A small validation library for .NET that uses a fluent interface and lambda expressions for building validation rules.
Get Started
FluentValidation can be installed using the Nuget package manager or the dotnet
CLI.
dotnet add package FluentValidation
For ASP.NET Core integration:
dotnet add package FluentValidation.AspNetCore
Sponsorship
If you find FluentValidation useful, please consider becoming a sponsor, which will help keep the project going ๐.
FluentValidation |
||
FluentValidation.AspNetCore |
||
FluentValidation.Mvc5 |
||
FluentValidation.WebApi |
Example
using FluentValidation;
public class CustomerValidator: AbstractValidator<Customer> {
public CustomerValidator() {
RuleFor(x => x.Surname).NotEmpty();
RuleFor(x => x.Forename).NotEmpty().WithMessage("Please specify a first name");
RuleFor(x => x.Discount).NotEqual(0).When(x => x.HasDiscount);
RuleFor(x => x.Address).Length(20, 250);
RuleFor(x => x.Postcode).Must(BeAValidPostcode).WithMessage("Please specify a valid postcode");
}
private bool BeAValidPostcode(string postcode) {
// custom postcode validating logic goes here
}
}
var customer = new Customer();
var validator = new CustomerValidator();
ValidationResult results = validator.Validate(customer);
bool success = results.IsValid;
IList<ValidationFailure> failures = results.Errors;
Documentation
Documentation can be found on the project site.
License, Copyright etc
FluentValidation has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.
FluentValidation is copyright © 2008-2020 .NET Foundation, Jeremy Skinner and other contributors and is licensed under the Apache2 license.
.NET Foundation
This project is supported by the .NET Foundation.
JetBrains
This project is supported by JetBrains, who kindly provide licenses for their software, free of charge, to help with the development of this project.
*Note that all licence references and agreements mentioned in the FluentValidation README section above
are relevant to that project's source code only.