- Notifications
You must be signed in to change notification settings - Fork4
An extension of the fluent validation with a set of Brazilian validations
License
NotificationsYou must be signed in to change notification settings
LucasMendesl/FluentValidation.Extensions.Br
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
An extension of the fluent validation with a set of Brazilian validations
🇧🇷 Switch to portuguese version
The prupose of this library is create a extension with brazilian´s validation toFluentValidation package.
This library was designed to provide a set of brazilian´s attributes validation such as CPF, CNPJ
Install with Package Manager
Nuget
PM > Install-Package Extensions.FluentValidation.BrInstall with .NET CLI
.NET CLI
dotnet add package Extensions.FluentValidation.BrpublicclassPerson{publicstringName{get;set;}publicstringCPF{get;set;}publicstringCNPJ{get;set;}}publicclassPersonValidator:AbstractValidator<Person>{publicPersonValidator(){RuleFor(employee=>employee.Name).NotNull();RuleFor(employee=>employee.CPF).IsValidCPF();RuleFor(employee=>employee.CNPJ).IsValidCNPJ();}}
dotnet testContributions via pull requests are welcome :-).
About
An extension of the fluent validation with a set of Brazilian validations
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.