Skip to content

PYTHON-2046 Change default JSONMode from LEGACY to RELAXED #711

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

Merged
merged 2 commits into from
Sep 8, 2021

Conversation

ShaneHarvey
Copy link
Member

@ShaneHarvey ShaneHarvey commented Aug 23, 2021

TODO:

  • Decide if we should change the behavior and make strict_number_long/datetime_representation/strict_uuid configurable even with JSONMode.RELAXED/JSONMode.CANONICAL.
    The options are to 1) ignore these options (keep the current behavior), 2) raise an error when an incompatible option is specified, or 3) allow users to configure these options with any json_mode. For now I've gone with option 2).
  • Update changelog
  • Update migration guide
  • Update any other misc docs

@ShaneHarvey ShaneHarvey marked this pull request as ready for review August 30, 2021 19:10
@ShaneHarvey ShaneHarvey requested review from juliusgeo and removed request for prashantmital September 7, 2021 20:33
Copy link
Contributor

@juliusgeo juliusgeo left a comment

Choose a reason for hiding this comment

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

LGTM!

@ShaneHarvey ShaneHarvey merged commit fb38fbe into mongodb:master Sep 8, 2021
juliusgeo pushed a commit to juliusgeo/mongo-python-driver that referenced this pull request Oct 1, 2021
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.

2 participants