Skip to content

[Validator] Range constraint: min and mix can be integer or string #10807

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions reference/constraints/Range.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Range
=====

Validates that a given number is *between* some minimum and maximum number.
Validates that a given number or ``DateTime`` object is *between* some minimum and maximum.

+----------------+---------------------------------------------------------------------+
| Applies to | :ref:`property or method <validation-property-target>` |
Expand Down Expand Up @@ -320,15 +320,15 @@ Options
min
~~~

**type**: ``integer``
**type**: ``mixed``

This required option is the "min" value. Validation will fail if the given
value is **less** than this min value.

max
~~~

**type**: ``integer``
**type**: ``mixed``

This required option is the "max" value. Validation will fail if the given
value is **greater** than this max value.
Expand Down