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

validation for no query params #139

Merged
merged 2 commits into from
Apr 16, 2018
Merged

validation for no query params #139

merged 2 commits into from
Apr 16, 2018

Conversation

edaniszewski
Copy link
Contributor

fixes #135

this adds in validation to ensure that no query parameters were passed. this means that if we pass query params to endpoints that don't support them (e.g. read), it will return with an error instead of ignoring the params and returning the endpoint response.

@codecov-io
Copy link

codecov-io commented Apr 13, 2018

Codecov Report

Merging #139 into master will increase coverage by 0.18%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #139      +/-   ##
==========================================
+ Coverage   88.59%   88.77%   +0.18%     
==========================================
  Files          40       40              
  Lines        1096     1114      +18     
==========================================
+ Hits          971      989      +18     
  Misses        125      125
Impacted Files Coverage Δ
synse/routes/core.py 96.61% <100%> (+0.45%) ⬆️
synse/routes/base.py 100% <100%> (ø) ⬆️
synse/validate.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 45ec2c1...ef4ce35. Read the comment docs.

@edaniszewski edaniszewski merged commit e73dc60 into master Apr 16, 2018
@edaniszewski edaniszewski deleted the query-param-check branch April 16, 2018 14:14
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

Successfully merging this pull request may close these issues.

return error when query params passed to routes that do not support them
3 participants