-
Notifications
You must be signed in to change notification settings - Fork 154
Swagger auto generate the OPTIONS method #111
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
Comments
It is actually a Flask feature described here: http://flask.pocoo.org/docs/1.0/api/#view-function-options |
Sorry I've seen your quickfix just now... |
I created a pull request for this here. If someone can merge it. |
You could make a workaround using FlaskApiSpec instance :) On my application, I allocate the instance inside for key, value in app.__docs__.spec._paths.items():
app.__docs__.spec._paths[key] = {
inner_key: inner_value
for inner_key, inner_value in value.items()
if inner_key != 'options'
} This should remove all options from ur API without killing the CORS functionality of your app :) |
Is it normal or an issue when swagger auto creating OPTIONS method when using with others methods (GET, POST...)?
How to ignore the options method? Thanks
The text was updated successfully, but these errors were encountered: