Comments (3)
First, a note on why #73 might've failed:
It might have something to do with this: https://github.com/plangrid/flask-rebar/blob/master/flask_rebar/rebar.py#L59
We might just need to tweak that a bit to be 301 or 308.
Second, regarding the bigger question: Do we need to support Flask 0.10?
Here's what we know:
- Maintaining support for Flask 0.10 is a pain
- Library support is part of our packages contract to consumers
- Removing library support is a breaking change
- Breaking changes require bumping the major version of Flask-Rebar
We could sneak the removal of this support without bumping the major version if we were confident that no one is using Flask 0.10. However, since this is open source, there's no good way to know that.
So, I think that leaves us with two options:
(1) Deal with the pain for now and make the change work with Flask 0.10
(2) Remove support for Flask 0.10 and bump the major version of Flask-Rebar
My gut says maintaining support hasn't gotten painful enough yet and we should go with option (1).
Maybe it will get painful enough, and we can remove it. Or maybe we'll have another reason to release a major version (Open API 3.0?), at which point we could remove support.
from flask-rebar.
So, yeah.. you nailed it. The issue was actually potentially a bit more than just "breaking our unit tests" so I've adjusted that pre-0.11 bit to now treat 308 same as 301 and all seems right with the world again. Thanks again!
from flask-rebar.
Thanks, Barak - appreciate the perspective, and I hadn't noticed that bit you pointed to. Will check that out!
from flask-rebar.
Related Issues (20)
- Remove things marked as deprecated with 2.0 as EOL
- dump_only=True regression in latest Flask-Rebar v2 release candidate HOT 3
- v2 Regression: DisallowExtraFieldsMixin broken HOT 3
- Rebar can generate invalid OpenAPI specs: non-unique operationId's
- Feature: Add SchemaOpts to opt-in to validation
- Fix CI build badge
- Support for Python 3.10 HOT 4
- AttributeError: 'AuthenticatorConverterRegistry' object has no attribute 'get_security_schemes_legacy' HOT 5
- Better support for OpenAPI OneOf HOT 1
- marshmallow-to-swagger RecursionError if schema has self references HOT 1
- BUG: DEPRECATED WERKZEUG METHOD HOT 4
- filter_dump_only crashes with fields that have data_key HOT 2
- prefixes with periods (".") cause flask's blueprint to complain that blueprint names can't have a period in them HOT 4
- Flask signals not triggered on unhandled exceptions
- Swagger: How to add title and description? HOT 1
- Support for binary / file types HOT 1
- Multiple schemas resolved to the same name HOT 1
- `compat.dump` raises ValidationError when nullable Nested fields (with required subfields) without dump_only of a ResponseSchema are None HOT 2
- Add dictionary value schema definition in Swagger spec
- Support Quart.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-rebar.