summaryrefslogtreecommitdiff
path: root/src/numeric.ml
AgeCommit message (Collapse)Author
2024-05-22T6380: Move validators to a dedicated subdirectoryDaniil Baturin
2023-10-06numeric: T5638: add --require-rangeDaniil Baturin
2023-10-06numeric: T5638: Do not complain about range arguments in check_not_value ↵Daniil Baturin
when it's not necessary (i.e., when no actual --not-value options are given)
2023-09-26numeric: T5617: add --not-value to the numeric validatorDaniil Baturin
2022-09-22T4669: disallow range arguments to numeric unless explicitly allowedDaniil Baturin
with --allow-range option
2022-09-06numeric: T4669: extend numeric.ml for inverted and range valuesJohn Estabrook
2022-06-17numeric: T4467: add support for relative values: +/-NJohn Estabrook
Add option '--relative' to check that value is of the form '+/-N' for some numeric N (e.g. +10' or '-30'), interpreted as a relative increment or decrement, rather than a signed integer/float. This may be combined with any other option, which will be applied to the value stripped of the leading modifier. Testing this extension revealed that negative values are being interpreted as options, whether quoted or not; to address that, an Arg.Rest keyword '--' is introduced, which will need to be passed along with the option in interface definitions using the above. For example: <validator name="numeric" argument="--relative --"/>
2022-05-10T4421: only allow numbers that look like an integer part with an optional ↵Daniil Baturin
fractional part
2022-05-10T4421: add support for floating point number in the numeric validatorDaniil Baturin
2020-05-20T2434: use correct bigint comparison.Daniil Baturin
2020-05-06Initial import.Daniil Baturin