Found 157 packages
Provides attributes that are used to define metadata for objects used as data sources. Commonly Used Types: System.ComponentModel.DataAnnotations.ValidationResult System.ComponentModel.DataAnnotations.IValidatableObject System.ComponentModel.DataAnnotations.ValidationAttribute System.ComponentModel.DataAnnotations.RequiredAttribute System.ComponentModel.DataAnnotations.StringLengthAttribute System.ComponentModel.DataAnnotations.DisplayAttribute System.ComponentModel.DataAnnotations.RegularExpressionAttribute System.ComponentModel.DataAnnotations.DataTypeAttribute System.ComponentModel.DataAnnotations.RangeAttribute System.ComponentModel.DataAnnotations.KeyAttribute When using NuGet 3.x this package requires at least version 3.4.
The CaseON library includes MatchON, ConvertON, and ValidateON classes for string casing, conversion, and validation in C# applications.
The only argument validation file you need, with full refactoring support and strong-typing. Examples: Guard.NotNull(() => value, value) Guard.NotNullOrEmpty( () => stringValue, stringValue)
C# StringExtensions Library provides comprehensive string extension methods that go behold just the common string validation methods extending the .Net System.string class
This library is used to validate strings e.g validate a valid phone number, email, creditcard etc
Fluent validation for text content. Ensures that the content read from csv files or excel files is valid or provides maximum feedback if validation errors occur.
A validation attribute that ensures a nullable string is a valid, nullable GUID.
A validation attribute that ensures a nullable string is a valid, populated GUID.
A library of helper methods for strings and validation
String operations/validation functions
After loading configuration into strongly typed POCO classes (e.g. IOptions), this package allows to extend these classes with validation routines to make sure loaded data is correct during runtime. Built in e-mail, URL, IP address, string and numeric value validators along with generic and custom validation possibility.
This package extends SensitiveString so it can be used with FluentValidation.
Text validation and assertion tools for the Agenix framework. Enables pattern matching, string comparison, and text-based validation in automated test scenarios with support for various text formats and encodings.
The Toolkit for the Enterprise Web Library. This can be used to conveniently gain validation, IO, and string manipulation functions without subscribing to the whole library lifecycle.
Checking if a string is null by passing the string input and the error message as the second parameter; Checking if a number is an int and return true, second it checker checks if a number is and int and return the number if it an int. All the validation is done in this methods your own is just to pass in the value and watch the majic.
JSON validation components for the Agenix framework. Provides comprehensive JSON schema validation, structure verification, and content assertion capabilities for automated testing of JSON-based APIs and data.
Add data attributes to setting class methods to validate input, set default values etc
Validate you input! public static void Example(string name, int age) { try { Validator .Begin(name, nameof(name)) .NotNull() .NotWhiteSpace() .Map(age, nameof(age)) .IsGreaterOrEquals(18) .TrowIfHasErrors(nameof(ErrorConverter), nameof(Example)); } catch (ValidationException e) { Console.WriteLine(e); IErrorConverter converter = new ErrorConverter(); var errors = converter.Convert(e); Console.WriteLine(errors); } }