I am struggling to write a parameter annotation for a field that would have to result as indexed array of integers:
voucher_products[0]: 23
voucher_products[1]: 102
voucher_products[2]: 233
I tried the following
* @OA\Parameter(
* name="voucher_products",
* in="query",
* description="",
* required=false,
* @OA\Schema(
* type="array",
* @OA\Items(
* type="integer",
* )
* )
* ),
I complete the form this way: form
The result I get in the query string parameters is
voucher_products: 23
voucher_products: 102
voucher_products: 233
If I check this field in $_POST its final value is voucher_products=233, since this doesn't turn to be an array.
What am I doing wrong?