Avd6977
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RangeValidator.cs
|
|
|
@ -38,15 +38,15 @@ namespace Squidex.Domain.Apps.Core.ValidateContent.Validators |
|
|
|
|
|
|
|
if (min.HasValue && typedValue.CompareTo(min.Value) < 0) |
|
|
|
{ |
|
|
|
addError(context.Path, $"Must be greater or equals than '{min}'."); |
|
|
|
addError(context.Path, $"Must be greater than or equal to '{min}'."); |
|
|
|
} |
|
|
|
|
|
|
|
if (max.HasValue && typedValue.CompareTo(max.Value) > 0) |
|
|
|
{ |
|
|
|
addError(context.Path, $"Must be less or equals than '{max}'."); |
|
|
|
addError(context.Path, $"Must be less than or equal to '{max}'."); |
|
|
|
} |
|
|
|
|
|
|
|
return TaskHelper.Done; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|