Skip to content

Commit

Permalink
Merge pull request #31498 from drmaniac/resteasy-openapi-31486
Browse files Browse the repository at this point in the history
Added a note to get correct OpenAPI documentation
  • Loading branch information
gsmet authored Mar 2, 2023
2 parents 27d7d5f + 2c15623 commit 2139851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/src/main/asciidoc/resteasy-reactive.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,14 @@ public class Endpoint {
}
@POST
public String allParams(Parameters parameters) {
public String allParams(@BeanParam Parameters parameters) { <1>
return parameters.type + "/" + parameters.variant + "/" + parameters.age
+ "/" + parameters.level + "/" + parameters.secretHandshake
+ "/" + parameters.smell;
}
}
----
<1> `BeanParam` is required to comply with the JAX-RS specification so that libraries like OpenAPI can introspect the parameters.

=== Declaring URI parameters

Expand Down

0 comments on commit 2139851

Please sign in to comment.