3.0.2 (2023-09-02)
- Package has been discontinued (aeed917)
3.0.1 (2023-02-15)
- security email regex (csharpsquid:S6444) (783ebc6)
3.0.0 (2022-11-19)
- Removed deprecated methods (d89fbb6)
- Removed deprecated methods (e74ffe7)
- Removed deprecated methods (e850bfc)
- Removed deprecated methods (574e5e5)
- Removed deprecated methods (bdb04f8)
- Added new construction in exceptions to provide inner exceptions (dce51ac)
- Removed deprecated method
NotEmail - Removed deprecated method
IfLengthZero - Removed deprecated method
IfLengthDifference - Removed deprecated method
IfLengthLessThan - Removed deprecated method
IfLengthGreaterThan
2.5.1 (2022-07-24)
- Release version (42c1a14)
2.5.0 (2022-07-24)
- Add support to debug in runtime
Microsoft.SourceLink.GitHub(3b425c2)
2.4.0 (2022-04-08)
- Removed
PowerUtils.Textdependency;
- Added Guard
Guard.Validate.IfOutOfRange()for dateTime; - Added Guard
Guard.Validate.IfOutOfRange()for numbers;
2.3.0 (2022-04-05)
- Added Guard
Guard.Validate.IfLengthOutOfRange();
2.2.1 (2022-04-04)
- Returned the same type as the input value for
Guard.Validate.IfNull(); - Added again the the specific
Guard.Validate.IfNull()for strings;
2.2.0 (2022-04-03)
- Added the return of the value to be validated in all
Guard.Validate.*;
2.1.0 (2022-03-30)
- Added Guard
Guard.Validate.IfLatitudeOutOfRange()andGuard.Validate.IfLongitudeOutOfRange();
2.0.0 (2022-03-26)
- Added Guard
Guard.Validate.IfNull()for objects; - Added Guard
Guard.Validate.IfEmpty()for Enumerables; - Added Guard
Guard.Validate.IfNullOrEmpty()for Enumerables; - Added Guard
Guard.Validate.IfNullOrEmpty()for Enumerables; - Added Guard
Guard.Validate.IfCountGreaterThan()for Enumerables; - Added Guard
Guard.Validate.IfCountLessThan()for Enumerables;
- Updated nuget dependencies;
- Interface
IGuardClausenamed toIGuardValidationClause;
1.2.0 (2022-03-20)
- Added Guard
Guard.Validate.IfEquals(); - Added Guard
Guard.Validate.IfDifferent();
- Discontinued the validation
string.IfLengthZero, Can use thestring.IfEmptybecause it does the same validation; - Discontinued the validation
string.IfLengthDifference, Can use thestring.IfLengthDifferentbecause the name is wrong; - Discontinued the validation
string.IfLengthGreaterThan, Can use thestring.IfLongerThan. Improved method name; - Discontinued the validation
string.IfLengthLessThan, Can use thestring.IfShorterThan. Improved method name; - Discontinued the validation
string.NotEmail, Can use thestring.IfNotEmailbecause the name is wrong;
1.1.0 (2022-03-16)
- Added Guard
Guard.Validate.IfEmpty(string); - Added Guard
Guard.Validate.IfEmpty(guid); - Added Guard
Guard.Validate.NotEmail(email); - Added Guard
Guard.Validate.IfLengthEquals(value, length); - Added Guard
Guard.Validate.IfLengthDifference(value, length); - Added new constructor
UnauthorizedException(property, errorCode, message); - Added new constructor
ForbiddenException(property, errorCode, message); - Added new constructor
NotFoundException(property, errorCode, message); - Added new constructor
ConflictException(property, errorCode, message); - Added factory
BadRequestException.Factory.CreateRequired(property); - Added factory
PropertyException.Factory.CreateRequired(property); - Added factory
UnauthorizedException.Factory.Create(property, errorCode); - Added factory
ForbiddenException.Factory.Create(property, errorCode); - Added factory
NotFoundException.Factory.Create(property, errorCode); - Added factory
ConflictException.Factory.Create(property, errorCode); - Added Throw
BadRequestException.ThrowRequired(property); - Added Throw
PropertyException.ThrowRequired(property); - Added Throw
UnauthorizedException.Throw(property, errorCode); - Added Throw
ForbiddenException.Throw(property, errorCode); - Added Throw
NotFoundException.Throw(property, errorCode); - Added Throw
ConflictException.Throw(property, errorCode);
- Kickoff;
- Moved the attributes from PowerUtils.Validations project to this one so it can be used individually;
- Added guard clauses;
BaseValidationException.Notificationsnamed toBaseValidationException.Errorsand the type changed fromIReadOnlyCollection<ValidationNotification>toIReadOnlyDictionary<string, string>;- Removed constructor
protected BaseValidationException(HttpStatusCode statusCode, string helpLink, SerializationInfo info, StreamingContext context); - Exception
InvalidPropertyExceptionnamed toPropertyException; - Removed constructor
public UnauthorizedException(string property, string errorCode); - Removed constructor
public UnauthorizedException(string property, string errorCode, string message);