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:
Thomas Lamprecht 2022-05-13 11:41:35 +02:00
parent 54d315c951
commit 1ddfae5499
1 changed files with 1 additions and 1 deletions

View File

@ -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)")
.minimum(0)
.maximum(MAX_NAMESPACE_DEPTH as isize)
.default(0)
.default(MAX_NAMESPACE_DEPTH as isize)
.schema();
pub const NS_MAX_DEPTH_REDUCED_SCHEMA: Schema =