Skip to content

NumberRange step validation #658

@azmeuk

Description

@azmeuk

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature, or existing feature improvementnewcomersAn easy task to tackle

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions