idoc icon indicating copy to clipboard operation
idoc copied to clipboard

BodyParams type arrays or objects

Open js-moreno opened this issue 4 years ago • 1 comments

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

js-moreno avatar Jan 22 '21 19:01 js-moreno

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!

badjuice avatar Jun 23 '21 11:06 badjuice

Closed as completed?

Arrays currently don't work properly. An array in @bodyParam shows the payload as a string containing "[]".

image

deevus avatar Aug 01 '23 06:08 deevus