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

Resteasy Reactive support for multivalued parameters #29528

Closed
preokane opened this issue Nov 28, 2022 · 1 comment · Fixed by #29550
Closed

Resteasy Reactive support for multivalued parameters #29528

preokane opened this issue Nov 28, 2022 · 1 comment · Fixed by #29550
Assignees
Labels
area/rest kind/enhancement New feature or request
Milestone

Comments

@preokane
Copy link

preokane commented Nov 28, 2022

Description

I've been trying to get Resteasy Reactive to parse arrays of values in my URLs in the form of comma separated values rather than '&' separated values.
e.g. ?array=item1,item2,item3 rather than ?array=item1&array=item2&array=item3

This feature is available in the Resteasy classic extension through the usage of the @Separator annotation and the MultiValuedParamConverterProvider which comes included in resteasy-core and seems to be registered by default.

It would look something like:

@GET
public String hello(@QueryParam("foo") @Separator(",") List<String> foo) {}

It would be nice to have a similar way to do this for the Resteasy reactive extension.

Implementation ideas

Possibly by including these providers which are used by default in the Resteasy classic extension.

@preokane preokane added the kind/enhancement New feature or request label Nov 28, 2022
@quarkus-bot
Copy link

quarkus-bot bot commented Nov 28, 2022

/cc @FroMage, @geoand, @stuartwdouglas

@geoand geoand self-assigned this Nov 28, 2022
geoand added a commit to geoand/quarkus that referenced this issue Nov 29, 2022
This annotation allows to actually turn a String into a List<String>
automatically for each query param value

Resolves: quarkusio#29528
geoand added a commit to geoand/quarkus that referenced this issue Nov 29, 2022
This annotation allows to actually turn a String into a List<String>
automatically for each query param value

Resolves: quarkusio#29528
geoand added a commit that referenced this issue Dec 5, 2022
Introduce @Separator annotation for query parameters
@quarkus-bot quarkus-bot bot added this to the 2.16 - main milestone Dec 5, 2022
@gsmet gsmet modified the milestones: 2.16 - main, 2.15.0.Final Dec 6, 2022
gsmet pushed a commit to gsmet/quarkus that referenced this issue Dec 6, 2022
This annotation allows to actually turn a String into a List<String>
automatically for each query param value

Resolves: quarkusio#29528
(cherry picked from commit f695369)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/rest kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants