-
Notifications
You must be signed in to change notification settings - Fork 338
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
Starting with Flask version 2.2.0, there's a UserWarning raised for Blueprint #485
Labels
bug
Something isn't working
Comments
Relevant issue pallets/flask#4571 |
Just getting around to investigating this warning. Any thoughts on how to properly register these blueprints? |
jdieter
added a commit
to cyara/flask-restx
that referenced
this issue
Dec 14, 2022
Flask 2.2.0 issues a warning if a url rule is added to a blueprint after it has been registered, so this commit ensures that the documentation rules are added before the blueprint is registered. Fixes: python-restx#485 Signed-off-by: Jonathan Dieter <jonathan.dieter@spearline.com>
jdieter
added a commit
to cyara/flask-restx
that referenced
this issue
Dec 14, 2022
Flask 2.2.0 issues a warning if a url rule is added to a blueprint after it has been registered, so this commit ensures that the documentation rules are added before the blueprint is registered. Fixes: python-restx#485 Signed-off-by: Jonathan Dieter <jonathan.dieter@spearline.com>
This was referenced Jan 2, 2023
jdieter
added a commit
to cyara/flask-restx
that referenced
this issue
Jan 11, 2023
Flask 2.2.0 issues a warning if a url rule is added to a blueprint after it has been registered, so this commit ensures that the documentation rules are added before the blueprint is registered. Fixes: python-restx#485 Signed-off-by: Jonathan Dieter <jonathan.dieter@spearline.com>
peter-doggart
pushed a commit
that referenced
this issue
Jan 14, 2023
Flask 2.2.0 issues a warning if a url rule is added to a blueprint after it has been registered, so this commit ensures that the documentation rules are added before the blueprint is registered. Fixes: #485 Signed-off-by: Jonathan Dieter <jonathan.dieter@spearline.com> Signed-off-by: Jonathan Dieter <jonathan.dieter@spearline.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Starting with Flask version 2.2.0, there's a UserWarning raised for Blueprint. It will raise an exception in 2.3.0. With Flask 2.1.3, there's no warning.
Code
Repro Steps (if applicable)
Expected Behavior
flask-restx should use Flask method properly to prevent it from getting broken in future.
Actual Behavior
Flask raise UserWarning.
Error Messages/Stack Trace
Environment
Additional Context
This is your last chance to provide any pertinent details, don't let this opportunity pass you by!
The text was updated successfully, but these errors were encountered: