Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BodyParams type arrays or objects #44

Closed
almanskis opened this issue Mar 27, 2024 · 1 comment
Closed

BodyParams type arrays or objects #44

almanskis opened this issue Mar 27, 2024 · 1 comment

Comments

@almanskis
Copy link

Issue based on #19

Previous issue regarding this topic is closed as completed, but I can not find anywhere the example of how to use the said types of array or objects, because as it is decribed in the previous issue, it does not work.

The said types are really needed.

I have noticed, that Redoc can have an array containing object elements. Is there any way to that also? Or are any changes required for that to work?

image

Any of theses examples does not work.

 * @bodyParam  my_object object required.
 * Some object
 * 
 * @bodyParam  my_object.item string required 
 * Item in the object.
 * @bodyParam  my_array array 
 * Some array.
 * 
 * @bodyParam  my_array.* integer 
 *  Items in the array.
 * @bodyParam  my_set array 
 * Some set
 * 
 * @bodyParam  my_set.*.item string
 * Object element within set

image

image

@almanskis
Copy link
Author

Found another solution with better functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant