From 1ddfae549936d542cc8b7b850b7cfb5344b4b006 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Fri, 13 May 2022 11:41:35 +0200 Subject: [PATCH] api types: set NS_MAX_DEPTH schema default to MAX_NAMESPACE_DEPTH Signed-off-by: Thomas Lamprecht --- pbs-api-types/src/datastore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index 1212ff89..f88a933e 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -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 =