Skip to content

Commit 2c15623

Browse files
drmaniacgsmet
authored andcommitted
Updated grouped parameter example and added a comment
1 parent 3ffbd93 commit 2c15623

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/src/main/asciidoc/resteasy-reactive.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,13 +383,14 @@ public class Endpoint {
383383
}
384384
385385
@POST
386-
public String allParams(Parameters parameters) {
386+
public String allParams(@BeanParam Parameters parameters) { <1>
387387
return parameters.type + "/" + parameters.variant + "/" + parameters.age
388388
+ "/" + parameters.level + "/" + parameters.secretHandshake
389389
+ "/" + parameters.smell;
390390
}
391391
}
392392
----
393+
<1> `BeanParam` is required to comply with the JAX-RS specification so that libraries like OpenAPI can introspect the parameters.
393394

394395
=== Declaring URI parameters
395396

0 commit comments

Comments
 (0)