diff --git a/flask_apispec/apidoc.py b/flask_apispec/apidoc.py index 239c673..c2d06b3 100644 --- a/flask_apispec/apidoc.py +++ b/flask_apispec/apidoc.py @@ -45,7 +45,7 @@ def get_path(self, rule, target, **kwargs): 'operations': { method.lower(): self.get_operation(rule, view, parent=parent) for method, view in six.iteritems(operations) - if method.lower() in (set(VALID_METHODS) - {'head'}) + if method.lower() in (set(VALID_METHODS) - {'head', 'options'}) }, }