SmartValidationsLibrary 1.0.1

dotnet add package SmartValidationsLibrary --version 1.0.1
                    
NuGet\Install-Package SmartValidationsLibrary -Version 1.0.1
                    
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="SmartValidationsLibrary" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SmartValidationsLibrary" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="SmartValidationsLibrary" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SmartValidationsLibrary --version 1.0.1
                    
#r "nuget: SmartValidationsLibrary, 1.0.1"
                    
#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.
#:package SmartValidationsLibrary@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SmartValidationsLibrary&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=SmartValidationsLibrary&version=1.0.1
                    
Install as a Cake Tool

Smart Validations Library

SmartValidationsLibrary is a cutting-edge C# library designed to simplify data validation tasks. Whether it's email addresses, phone numbers, custom patterns, or dates, this library provides the utilities you need.

  • Email Validation: No need to grapple with complicated regular expressions; simply use the IsValidEmail method.
  • Phone Number Validation: With regional flexibility, validate phone numbers with ease using IsValidPhoneNumber.
  • Date Verification: Ensure inputted dates are correctly formatted with the IsValidDate function.
  • Custom Validations: Beyond the built-in validators, you can introduce your own custom patterns and use the IsValidCustom method for validation. You can even add new custom validations on-the-fly with AddCustomValidation.

Features

  • Modern, fluent API for validating various data types.
  • Entity validation using attributes for a cleaner validation process.
  • Region-specific phone number validation.
  • A comprehensive set of validations that can be further expanded based on project needs.
  • Clear, concise exception handling for validation errors.

In a world where data drives decisions, ensuring the integrity and accuracy of that data is crucial. With SmartValidationsLibrary, developers have the tools they need to perform rigorous validation checks efficiently.

Tech Stack

SmartValidationsLibrary harnesses the power of:

  • C#: A modern, object-oriented programming language, perfect for all kinds of applications.
  • Regex: Leveraged for meticulous and precise data validation checks.

Installation

Integrating SmartValidationsLibrary into your project is straightforward:

  1. Add the NuGet package to your solution.
  2. Use the following namespace in your classes:
using SmartValidationsLibrary;

Contribute

Interested in making SmartValidationsLibrary even better? Fantastic!

Here's how you can contribute:

  1. Clone the repository:
git clone https://github.com/AdrianBailador/SmartValidationsLibrary.git
  1. Make your desired changes.
  2. Write tests ensuring the validity of your changes.
  3. Submit a pull request!

Together, we can make data validation smarter.

License

MIT


Links:

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 256 8/26/2023
1.0.0 217 8/23/2023