-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Body parameters description? #246
Comments
what do you mean ? parameters have description available, so does body, see documentation : http://www.zodios.org/docs/api/api-definition#parameters |
Isn't the body schema defined in a single parameter though? |
oh, you mean body properties ? it's a zod feature you are asking for ? |
It's because in OpenAPI the schema fields can have description, no matter if it's a requestBody |
Now thinking more about it, would be nice if the body supported passing a |
It's possible to add an optionnal example field, like for description. it will then allow for openapi example generation. Feel free to create a feature request with a detailed explanation. But description for schema properties is not possible. it's out of my power to add this feature to zod. So i'm closing this one |
For reference: ecyrbe/zodios-openapi#172 |
Sometimes I miss the possibility of adding a description for each parameter in POST/PUT/DELETE requests instead of having just a body description, am I wrong?
The text was updated successfully, but these errors were encountered: