Browse Source

Update RangeValidator.cs

pull/318/head
Avd6977 8 years ago
committed by GitHub
parent
commit
720eac0132
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/Squidex.Domain.Apps.Core.Operations/ValidateContent/Validators/RangeValidator.cs

6
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;
}
}
}
}

Loading…
Cancel
Save