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

Parsing objects in Query Parameters #1272

Open
ibarrae opened this issue Feb 13, 2020 · 2 comments
Open

Parsing objects in Query Parameters #1272

ibarrae opened this issue Feb 13, 2020 · 2 comments

Comments

@ibarrae
Copy link

ibarrae commented Feb 13, 2020

Hi folks. Let me congratulate all of you for your hard work in this project, I really have enjoyed using it and has been really helpful 🌮.

What I would like to ask is if is there a way to parse "objects" as the example described here?

I understand that servant ATM can use Query Params but it doesn't allow the use of "indexed" values like: ?filter[]=val&filter[]=bar so I'm guessing something like ?filter[eq]=val is not supported and will silently discard the parameter?

I hope this makes sense and sorry in advance because english is not my main language, thanks again for your help with this 😄

@phadej
Copy link
Contributor

phadej commented Feb 13, 2020

It will be possible when #1047 is merged.

It didn't get merged, as I wanted to check https://github.com/haskell-servant/servant/pull/1047/files#r367385649 and maybe alter the behavior; but didn't yet got to it.

If you are brave, you could use the commit from that PR, field testing is very welcome.

@ibarrae
Copy link
Author

ibarrae commented Feb 13, 2020

That's great! I'll take a look at it when possible 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants