Parse queryParams
to a non-primitive type in RouteArgs
#1547
MartinAKovachev
started this conversation in
General
Replies: 1 comment 1 reply
-
@MartinAKovachev is the url above parsable by Uri.parse? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @Milad-Akarie,
We have a page which receives inside it's constructor a
Map<String, List<String>>
and added@QueryParam
annotation to it.When running the application in web and navigate to this specific page, the url bar contains the query parameters like this:
http://test.com/#/search?query=Test+query&filters={filter1:+[a,+b],+filter2:+[c,+d]}
After reloading the page in the browser there is an error appearing that says:
After checking the generated auto route file it appeared that the queryParams is not parsed correctly:
Is there anything we can do to fix that issue and is it possible to pass custom object to
@PathParams
and@QueryParams
except the primitive types?Beta Was this translation helpful? Give feedback.
All reactions