Hi Swaggers,
I have the following issue.
I have build rest api to create invoices.
The invoice have array of items
the definition is:
'definitions' => array(
'InvoiceItems' => array(
'type' => 'object',
'required' => array(
'name',
'quantity',
'price',
),
'properties'=> array(
'name' => array(
'type' => 'string',
'required' => true,
),
'quantity' => array(
'type' => 'float',
),
'price' => array(
'type' => 'float',
),
)
)
)
and the parameter is
'parameters' => array(
array(
'required' => true,
'name' => 'items',
'in' => 'formData',
'description' => 'desc ..',
"schema" => array(
'$ref' => "#/definitions/InvoiceItems",
),
'type' => 'array',
'collectionFormat' =>'multi',
),
)
Is it possible when I do POST this array of arrays ?
The swagger UI shows me only an input and the schema definition on the right, but I cannot fill any of the elements