SpringDoc: How to add description to body request parameters?

Viewed 668

In SpringDoc, you can use @Parameter to add descriptions and additional information for a query parameter. However, there doesn't appear to be a straightforward way to do it for parameters within a request body, especially for POST and PUT requests.

Is there a way to do this via annotations or is this a non-supported feature?

1 Answers

Apply @Schema to your request body object in the individual fields.

Related