We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1d364 commit f0ef0e2Copy full SHA for f0ef0e2
src/Drivers/Standard/ParamsValidator.php
@@ -47,7 +47,7 @@ public function validateScopes(Request $request): void
47
48
public function validateFilters(Request $request): void
49
{
50
- $max_depth = ceil(($this->getArrayDepth($request->all()['filters'])) / 2) - 1;
+ $max_depth = floor($this->getArrayDepth($request->all()['filters']) / 2);
51
$config_max_nested_depth = config('orion.search.max_nested_depth', 1);
52
53
abort_if($max_depth > $config_max_nested_depth, 422, __('Max nested depth :depth is exceeded', ['depth' => $config_max_nested_depth]));
0 commit comments