SkillAgentSearch skills...

DependentValidation

DependentValidation is a netstandard2.0 library that extends the System.ComponentModel.DataAnnotations with conditional attributes based on another property of the validated object.

Install / Use

/learn @mind-ra/DependentValidation
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

DependentValidation

DependentValidation is a netstandard2.0 library that extends the System.ComponentModel.DataAnnotations with conditional attributes based on another property of the validated object.

The new attributes are the following:

  • RequiredIf
  • RequiredIfEmpty
  • RequiredIfFalse
  • RequiredIfNot
  • RequiredIfNotEmpty
  • RequiredIfNotRegExMatch
  • RequiredIfRegExMatch
  • RequiredIfTrue
  • RegularExpressionIf
  • Is
  • EqualTo
  • GreaterThan
  • GreaterThanOrEqualTo
  • LessThan
  • LessThanOrEqualTo
  • NotEqualTo

Installation

DependentValidation is on NuGet

Install-Package DependentValidation

Minimum Requirements: .NET Standard 2.0.


Inside this project there is a small js file, dependentvalidation.unobstrusive.js that extend the jQuery Validation Plugin and the jQuery Unobtrusive Validation for unobstrusive client validation.


This project is based on foolproof, which I used extensively in my Asp.Net MVC projects.

Going forward developing projects with .Net Core, I felt the need of a Foolproof like library, but what I found is too much complex for my needs.

So I decided to try and give back something to the Open Source Community.

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated1y ago
Forks1

Languages

C#

Security Score

60/100

Audited on Jan 20, 2025

No findings