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

Add swagger pattern for filtering param #30

Open
Martoon-00 opened this issue Jun 17, 2021 · 0 comments
Open

Add swagger pattern for filtering param #30

Martoon-00 opened this issue Jun 17, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@Martoon-00
Copy link
Member

For swagger of sorting params, we fill pattern field, and this allows for validation of user input when trying executing requests from Swagger UI.

Would be sweet to have a similar thing for filtering. This should be slightly more difficult, but still doable.

A good start would be to run stack ghci servant-util:servant-util-test, execute printFilterSwagger, put the resulting file to Swagger Editor, and make the descriptions of fields match with what is actually accepted in that field when "Try it out" and then "Execute" are pressed.

@Martoon-00 Martoon-00 added the good first issue Good for newcomers label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant