inveniosoftware / flask-resources

REST APIs for Flask
https://flask-resources.readthedocs.io
MIT License
3 stars 21 forks source link

global: make package ready for flask 2 #98

Closed max-moser closed 3 years ago

max-moser commented 3 years ago

A few changes to make the package ready for use with Flask 2 (still works with Flask 1.x). For instance, the HTTPException getters now expect another positional argument, scope: https://github.com/pallets/werkzeug/blob/main/src/werkzeug/exceptions.py#L153-L157 Note: Flask 2.0.1 introduced a check of the Blueprint name on init, which requires the name to be set to some string (i.e. not None).