Skip to content

Commit e26e463

Browse files
authored
Consistent ordering for HTTP path keys (#159)
1 parent abcb590 commit e26e463

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/apispec_webframeworks/tornado.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _operations_from_methods(
5252
:param handler_class:
5353
:type handler_class: RequestHandler descendant
5454
"""
55-
for httpmethod in yaml_utils.PATH_KEYS:
55+
for httpmethod in sorted(yaml_utils.PATH_KEYS):
5656
method = getattr(handler_class, httpmethod)
5757
docstring = method.__doc__ or ""
5858
operation_data = yaml_utils.load_yaml_from_docstring(docstring)

0 commit comments

Comments
 (0)