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

app.json_encoder usage is deprecated and will be removed in Flask 2.3.0 #10

Closed
djhoese opened this issue Mar 6, 2023 · 3 comments
Closed

Comments

@djhoese
Copy link

djhoese commented Mar 6, 2023

See pallets/flask#4692

Running my tests I see these warnings:

../../../miniconda3/envs/rain_py311/lib/python3.11/site-packages/flask_json.py:547
  /home/davidh/miniconda3/envs/rain_py311/lib/python3.11/site-packages/flask_json.py:547: DeprecationWarning: 'app.json_encoder' is deprecated and will be removed in Flask 2.3. Customize 'app.json_provider_class' or 'app.json' instead.
    app.json_encoder = self._encoder_class

../../../miniconda3/envs/rain_py311/lib/python3.11/site-packages/flask_json.py:674
  /home/davidh/miniconda3/envs/rain_py311/lib/python3.11/site-packages/flask_json.py:674: DeprecationWarning: 'app.json_encoder' is deprecated and will be removed in Flask 2.3. Customize 'app.json_provider_class' or 'app.json' instead.
    self._app.json_encoder = JSONEncoderWithHook
@skozlovf
Copy link
Owner

skozlovf commented Mar 7, 2023

@djhoese Yep, I plan to rework internals to switch to the new flask API.

@djhoese
Copy link
Author

djhoese commented Mar 7, 2023

Sounds good. Thanks! I just wasn't sure and wanted to check.

@skozlovf
Copy link
Owner

skozlovf commented May 6, 2023

Fixed in 0.4.0.

@skozlovf skozlovf closed this as completed May 6, 2023
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

No branches or pull requests

2 participants