api types: set NS_MAX_DEPTH schema default to MAX_NAMESPACE_DEPTH
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
54d315c951
commit
1ddfae5499
@ -87,7 +87,7 @@ pub const NS_MAX_DEPTH_SCHEMA: Schema =
|
|||||||
IntegerSchema::new("How many levels of namespaces should be operated on (0 == no recursion)")
|
IntegerSchema::new("How many levels of namespaces should be operated on (0 == no recursion)")
|
||||||
.minimum(0)
|
.minimum(0)
|
||||||
.maximum(MAX_NAMESPACE_DEPTH as isize)
|
.maximum(MAX_NAMESPACE_DEPTH as isize)
|
||||||
.default(0)
|
.default(MAX_NAMESPACE_DEPTH as isize)
|
||||||
.schema();
|
.schema();
|
||||||
|
|
||||||
pub const NS_MAX_DEPTH_REDUCED_SCHEMA: Schema =
|
pub const NS_MAX_DEPTH_REDUCED_SCHEMA: Schema =
|
||||||
|
Loading…
Reference in New Issue
Block a user