-
Notifications
You must be signed in to change notification settings - Fork 422
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
Handle querystring parameters as JSON encoded values. Fixes #1217 #1252
Handle querystring parameters as JSON encoded values. Fixes #1217 #1252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM appart the two last test modifications that I don't understand. I'll test this straight away as you deployed it on kinto-ota, thanks!
@@ -44,12 +59,12 @@ def test_float(self): | |||
self.assertEqual(native_value('3.14'), 3.14) | |||
|
|||
def test_true_values(self): | |||
true_strings = ['True', 'on', 'true', 'yes'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because they are not valid JSON values and we don't use it, so I'd like to change the behavior to stick with the JSON spec there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested it, it doesn't seem to be fixing the issue :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so I'll approve it
I am not sure we should add specific tests to make sure it works I guess. |
**Bug fixes** | ||
|
||
- Handle querystring parameters as JSON encoded values | ||
to avoid treating number as number where they should be strings. (#1217) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be an API breaking change (although off
and no
were not documented...)
Fixes #1217