We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 510bccf commit 085b374Copy full SHA for 085b374
src/apispec_webframeworks/flask.py
@@ -150,7 +150,7 @@ def path_helper(
150
view = self._view_for_rule(rule, app=app)
151
view_doc = view.__doc__ or ""
152
doc_operations = yaml_utils.load_operations_from_docstring(view_doc)
153
- doc_operations = {k: v for k, v in doc_operations.items() if k.upper() in rule.methods}
+ doc_operations = {k: v for k, v in doc_operations.items() if k.upper() in rule.methods or k.startswith("x-")}
154
operations.update(doc_operations)
155
if hasattr(view, "view_class") and issubclass(view.view_class, MethodView): # noqa: E501
156
# method attribute is dynamically added, which is supported by mypy
0 commit comments