diff options
Diffstat (limited to 'priv')
| -rw-r--r-- | priv/schema/rabbit.schema | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema index 9b51941483..a8a36ad87d 100644 --- a/priv/schema/rabbit.schema +++ b/priv/schema/rabbit.schema @@ -1156,7 +1156,7 @@ end}. {mapping, "net_ticktime", "kernel.net_ticktime",[ {datatype, [integer]}, - {validators, ["non_negative_integer"]} + {validators, ["non_zero_positive_integer"]} ]}. % =============================== @@ -1208,3 +1208,8 @@ end}. fun(Int) when is_integer(Int) -> Int >= 0 end}. + +{validator, "non_zero_positive_integer", "number should be greater or equal to one", +fun(Int) when is_integer(Int) -> + Int >= 1 +end}. |
