As mentioned in #654, it could be interesting to add a step argument to the NumberRange validator. This way it could validate some discrete values. A value x should be accepted if min <= x <= max and x - min % step == 0.
For instance NumberRange(min=10, max=20, step=3) would only accept values in [10, 13, 16, 19]
As mentioned in #654, it could be interesting to add a
stepargument to theNumberRangevalidator. This way it could validate some discrete values. A valuexshould be accepted ifmin <= x <= maxandx - min % step == 0.For instance
NumberRange(min=10, max=20, step=3)would only accept values in[10, 13, 16, 19]