Kirby Uniform Plugin: Validate Checkbox Array

I want to validate a checkbox array to make sure that at least one checkbox is marked.

<input type="checkbox" name="categories[]" value="1">
<input type="checkbox" name="categories[]" value="2">
<input type="checkbox" name="categories[]" value="3">

I try something like

$form = new Form([
    'categories' => [
        'rules' => ['required', 'min:1'],
        'message' => 'Select at least one category.',
    ],
]);

Of course reqiredand min:1aren’t working. However, I can’t find out what might work.

Only setting it to required doesn’t work?

No, otherwise I would have never came up with the 2nd rule.

Try

        'rules' => ['notEmpty'],