idoc
idoc copied to clipboard
BodyParams type arrays or objects
Hi,
I'd like to use arrays or objects as @BodyParam but it not identify dot notation.
I mean something like:
* @bodyParam my_object object required.
* Some object
*
* @bodyParam my_object.item string required
* Item in the object.
And
* @bodyParam my_array array
* Some array.
*
* @bodyParam my_array.* integer
* Items in the array.
Even
* @bodyParam my_set array
* Some set
*
* @bodyParam my_set.*.item string
* Object element within set
I also need to document fields that come in arrays of objects but am not currently able to do that. This would be a huge addition!
Closed as completed?
Arrays currently don't work properly. An array in @bodyParam shows the payload as a string containing "[]".