Use strict float handling in JSON functions by rpkilby · Pull Request #5265 · encode/django-rest-framework (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation4 Commits7 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

rpkilby

Resolve #4918, fix #5235. The important bits that I gathered from the discussion were:

This PR does the following:

Ryan P Kilby added 4 commits

July 10, 2017 16:55

STRICT_JSON controls the renderer & parser behavior on whether or not to accept non-standard float values (NaN, Infinity).

@rpkilby

Ryan P Kilby added 2 commits

July 10, 2017 18:51

tomchristie

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth a docstring here to highlight why we have this module.

@tomchristie

tomchristie

@tomchristie

Looks great. Deferring to 3.7.0.

carltongibson pushed a commit that referenced this pull request

Oct 6, 2017

Moved issue links to top for easier access. (Can move back later)

Strict JSON handling

Remove Django 1.8 & 1.9 from README and setup.py

Tickets migrated to 3.7.0 milestone.

Move issue links back to bottom.