All Projects → LucasMendesl → FluentValidation.Extensions.Br

LucasMendesl / FluentValidation.Extensions.Br

Licence: MIT License
An extension of the fluent validation with a set of Brazilian validations

Programming Languages

javascript
184084 projects - #8 most used programming language
C#
18002 projects

Projects that are alternatives of or similar to FluentValidation.Extensions.Br

xrechnung-schematron
Schematron rules for the German CIUS (XRechnung) of EN16931:2017
Stars: ✭ 19 (-17.39%)
Mutual labels:  validation
apple-receipt
Apple InAppPurchase Receipt - Models, Parser, Validator
Stars: ✭ 25 (+8.7%)
Mutual labels:  validation
js-form-validator
Javascript form validation. Pure JS. No jQuery
Stars: ✭ 38 (+65.22%)
Mutual labels:  validation
football-team-flags
Flags from national teams made with css 🏳
Stars: ✭ 19 (-17.39%)
Mutual labels:  brazilian
fefe
Validate, sanitize and transform values with proper TypeScript types and zero dependencies.
Stars: ✭ 34 (+47.83%)
Mutual labels:  validation
ruby-magic
Simple interface to libmagic for Ruby Programming Language
Stars: ✭ 23 (+0%)
Mutual labels:  validation
excel validator
Python script to validate data in Excel files
Stars: ✭ 14 (-39.13%)
Mutual labels:  validation
valid-data-url
Detect if a string is a data URL
Stars: ✭ 17 (-26.09%)
Mutual labels:  validation
flask-pydantic
flask extension for integration with the awesome pydantic package
Stars: ✭ 181 (+686.96%)
Mutual labels:  validation
strickland
Strickland is a JavaScript validation framework with a focus on extensibility and composition
Stars: ✭ 16 (-30.43%)
Mutual labels:  validation
webargs-starlette
Declarative request parsing and validation for Starlette with webargs
Stars: ✭ 36 (+56.52%)
Mutual labels:  validation
ttv
A command line tool for splitting files into test, train, and validation sets.
Stars: ✭ 38 (+65.22%)
Mutual labels:  validation
validada
Another library for defensive data analysis.
Stars: ✭ 29 (+26.09%)
Mutual labels:  validation
openapi-schemas
JSON Schemas for every version of the OpenAPI Specification
Stars: ✭ 22 (-4.35%)
Mutual labels:  validation
validate
Modern lightweight library without dependencies for the data validation from single input tag
Stars: ✭ 24 (+4.35%)
Mutual labels:  validation
laravel-pwned-passwords
Simple Laravel validation rule that allows you to prevent or limit the re-use of passwords that are known to be pwned (unsafe). Based on TroyHunt's Have I Been Pwned (https://haveibeenpwned.com)
Stars: ✭ 67 (+191.3%)
Mutual labels:  validation
nexus-validate
🔑 Add argument validation to your GraphQL Nexus API.
Stars: ✭ 29 (+26.09%)
Mutual labels:  validation
ngx-messages
Angular directives for displaying validation messages similar to these from AngularJs
Stars: ✭ 17 (-26.09%)
Mutual labels:  validation
magic-bytes
A library for detecting file types.
Stars: ✭ 20 (-13.04%)
Mutual labels:  validation
is-valid-domain
Validate domain name in JavaScript
Stars: ✭ 50 (+117.39%)
Mutual labels:  validation

FluentValidation.Extensions.Br

An extension of the fluent validation with a set of Brazilian validations

Nuget

🇧🇷 Switch to portuguese version

Main Goal

The prupose of this library is create a extension with brazilian´s validation to FluentValidation package.

Description

This library was designed to provide a set of brazilian´s attributes validation such as CPF, CNPJ

Install

Install with Package Manager

Nuget

PM > Install-Package Extensions.FluentValidation.Br

Install with .NET CLI

.NET CLI

dotnet add package Extensions.FluentValidation.Br

How to Use ?

public class Person
{
    public string Name { get; set; }
    public string CPF  { get; set; }
    public string CNPJ { get; set; }
}

public class PersonValidator : AbstractValidator<Person>
{
  public PersonValidator ()
  {
      RuleFor(employee => employee.Name).NotNull();
      RuleFor(employee => employee.CPF).IsValidCPF();
      RuleFor(employee => employee.CNPJ).IsValidCNPJ();
  }
}

Run Tests

dotnet test

Contributing

Contributions via pull requests are welcome :-).

License

MIT © Lucas Mendes Loureiro

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].