Skip to content

Commit 3dd8797

Browse files
committed
style: remove comments from search_dataset_schema.js
1 parent 754ff8d commit 3dd8797

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

search_dataset_schema.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ const leaf_schema = z.object({
2828
value: leaf_value_schema,
2929
});
3030

31-
// Build the filter node schema with a hard nesting cap (max depth 3).
32-
// At max depth, only leaf nodes are allowed.
3331
function build_node_schema(depth){
3432
if (depth<=1)
3533
return leaf_schema;
@@ -40,8 +38,6 @@ function build_node_schema(depth){
4038
return z.union([group_schema, leaf_schema]);
4139
}
4240

43-
// depth param counts schema layers incl. the leaf layer, so the value is
44-
// MAX_NESTING + 1 to allow exactly MAX_NESTING levels of group nesting.
4541
const MAX_NESTING = 3;
4642
export const filter_schema = build_node_schema(MAX_NESTING+1);
4743

0 commit comments

Comments
 (0)