MADE.Data.Validation 2.0.0

dotnet add package MADE.Data.Validation --version 2.0.0                
NuGet\Install-Package MADE.Data.Validation -Version 2.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MADE.Data.Validation" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MADE.Data.Validation --version 2.0.0                
#r "nuget: MADE.Data.Validation, 2.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MADE.Data.Validation as a Cake Addin
#addin nuget:?package=MADE.Data.Validation&version=2.0.0

// Install MADE.Data.Validation as a Cake Tool
#tool nuget:?package=MADE.Data.Validation&version=2.0.0                

MADE.NET Data Validation

GitHub release Build status Twitter Followers Nuget MADE.NET docs

The MADE.NET Data Validation library comes fully loaded with all the value validators you'd expect of any validation library. Easily get up and running with data validation on value ranges, alphanumeric, email address, min/max lengths, required, regular expressions and more as well as defining your own!

Features ⭐

  • Validators - A collection of out-of-the-box value validators including:
    • AlphaNumericValidator for values containing only alphanumeric characters
    • AlphaValidator for values containing only alpha characters
    • Base64Validator for values being a valid base64 string
    • BetweenValidator for values being within a minimum and maximum range
    • EmailValidator for values being a valid email address
    • GuidValidator for values being a valid GUID
    • IpAddressValidator for values being a valid IP address
    • LatitudeValidator for values being a valid latitude
    • LongitudeValidator for values being a valid longitude
    • MacAddressValidator for values being a valid MAC address
    • MaxLengthValidator for values below a maximum length
    • MaxValueValidator for values below a maximum value
    • MinLengthValidator for values above a minimum length
    • MinValueValidator for values above a minimum value
    • PredicateValidator for values meeting the condition of a value predicate
    • RegexValidator for values matching a regular expression
    • RequiredValidator for values that need to be set
    • WellFormedUrlValidator for values being a well-formed URL
  • ComparableExtensions - Extending objects inheriting IComparable with methods for easily validating whether values are greater or less than others. Discover the extensions available for comparable objects in our documentation.
  • DateTimeExtensions - Providing helper methods for validating that DateTime values are within ranges, or whether given dates are weekdays or weekends. Find out more about validation extensions for DateTime.
  • MathExtensions - A collection of extensions for validating numeric values are close to others, greater or less than, or within a range. Explore more helpers for numeric values.
  • StringExtensions - Extensions methods for strings that validate whether they contain other phrases with configurable comparison options, or whether a string is like another using wildcard patterns similar to Visual Basic's like operator. Discover the extensions available for validating strings.

Getting started

Get the library

You can install the Data Validation library into your dotnet application by running the following command:

dotnet add package MADE.Data.Validation

Or by adding the MADE.Data.Validation package in your NuGet package manager of choice.

Contributing 🤝🏻

Contributions, issues and feature requests are welcome!

Feel free to check the issues page. You can also take a look at the contributing guide.

We actively encourage you to jump in and help with any issues, and if you find one, don't forget to log it!

Support this project 💗

As many developers know, projects like this are built and maintained in maintainers' spare time. If you find this project useful, please Star or sponsor the repo on GitHub.

License

This project is made available under the terms and conditions of the MIT license.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on MADE.Data.Validation:

Package Downloads
MADE.UI.Controls.Validator

This package includes UI components for Windows and Uno Platform applications such as: - Validator for providing a wrapper for input control to provide validation over their current value using validators.

MADE.UI.Styling

This package includes UI components for Windows and Uno Platform applications such as: - SystemColorExtensions for extending System Color objects with helper methods, such as converting to Windows colors and checking luminosity. - WindowsColorExtensions for extending Windows Color objects with helper methods, such as converting to System colors and converting to HEX values.

MADE.UI.Controls.DropDownList

This package includes UI components for Windows and Uno Platform applications such as: - DropDownList for providing a selection control that provides a drop-down combo box that allows users to select one or multiple items from a list.

MADE.UI.Controls.FilePicker

This package includes UI components for Windows and Uno Platform applications such as: - FilePicker for providing an input control that allows a user to pick files similar to a web file input.

MADE.Data.Validation.FluentValidation

MADE.NET Data Validation for FluentValidation builds on the base FluentValidation library to provide an easy-to-use validator collection implementation that can chain together validators for a single value. Built on top of the MADE.NET Data Validation library, you also get all the goodness of the two validation libraries in one place. Bring the best of both worlds together!

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 865 12/29/2023
1.7.0-preview1 646 8/30/2022
1.6.0 29,657 5/24/2022
1.6.0-preview2 703 4/28/2022
1.6.0-preview1 686 4/27/2022
1.5.0 40,395 4/16/2022
1.4.0 7,025 11/10/2021
1.3.2 1,620 11/6/2021
1.3.1 1,620 10/20/2021
1.3.0 2,230 9/6/2021
1.3.0-pre1 1,309 7/31/2021
1.2.1 1,882 8/27/2021
1.2.0 1,802 6/11/2021
1.2.0-pre2 1,266 5/26/2021
1.2.0-pre1 1,322 5/12/2021
1.1.0 1,601 5/10/2021
1.1.0-pre1 1,246 4/15/2021
1.0.0 1,705 4/4/2021
1.0.0-preview2 1,277 2/3/2021
1.0.0-preview1 869 11/29/2020