Description
When sending the include query parameter as a array of strings(e.g. ?include[]=metadata), validation fails with the following error:
Cannot use param value "metadata". JSON array expected.
Current validation rules
$request->validate([
'include' => ['sometimes', 'array'],
'include.*' => ['string', Rule::in(['metadata'])],
]);
Observed result
The UI shows a validation error even though metadata is an allowed value.
How to reproduce the bug
Use this request validaiton rules
$request->validate([
'include' => ['sometimes', 'array'],
'include.*' => ['string', Rule::in(['metadata'])],
]);
Package Version
0.13.10
PHP Version
8.4
Laravel Version
12
Which operating systems does with happen with?
Linux
Notes
No response
Description
When sending the include query parameter as a array of strings(e.g. ?include[]=metadata), validation fails with the following error:
Cannot use param value "metadata". JSON array expected.
Current validation rules
Observed result
The UI shows a validation error even though metadata is an allowed value.
How to reproduce the bug
Use this request validaiton rules
Package Version
0.13.10
PHP Version
8.4
Laravel Version
12
Which operating systems does with happen with?
Linux
Notes
No response