My form-data consists of an array 'items' which contains details like:
items[0][id]:1
items[0][amount]:50
items[1][id]:2
items[1][amount]:25
This is how it looks like in postman. How can I write the swagger comments for this structure? Below is the comment I've built but it doesn't work.
/**
* @QA\Property(
* property="items[]",
* type="array",
* @QA\Items(
* type="object",
* @QA\Property(property="id", type="string"),
* @QA\Property(property="amount", type="string"),
* ),
* ),
*/
public $items;
Let me know what needs to be done to solve this issue.