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.
2 parents 7c4fcc4 + 2d992be commit 27ad7b4Copy full SHA for 27ad7b4
connexion/middleware/abstract.py
@@ -10,6 +10,7 @@
10
from connexion.operations import AbstractOperation
11
from connexion.resolver import Resolver
12
from connexion.spec import Specification
13
+from connexion.utils import sort_routes
14
15
logger = logging.getLogger(__name__)
16
@@ -85,7 +86,8 @@ def add_paths(self, paths: t.Optional[dict] = None) -> None:
85
86
Adds the paths defined in the specification as operations.
87
"""
88
paths = t.cast(dict, paths or self.specification.get("paths", dict()))
- for path, methods in paths.items():
89
+ for path in sort_routes(list(paths.keys())):
90
+ methods = paths[path]
91
logger.debug("Adding %s%s...", self.base_path, path)
92
93
for method in methods:
0 commit comments