Spaces:
Running
Running
Juergen Eger commited on
Commit ·
5f519d8
1
Parent(s): 1cc9bb6
fix ruff
Browse files
src/fastmcp/server/openapi.py
CHANGED
|
@@ -294,9 +294,9 @@ class OpenAPIResource(Resource):
|
|
| 294 |
# Last parameter in URI (parts[-1]) maps to last parameter in path, and so on
|
| 295 |
for i, param_name in enumerate(param_matches):
|
| 296 |
# Ensure we don't use resource identifier as parameter
|
| 297 |
-
if i < expected_param_count:
|
| 298 |
-
# Get values from the end of parts
|
| 299 |
-
param_value = parts[-1-i]
|
| 300 |
path_params[param_name] = param_value
|
| 301 |
|
| 302 |
# Replace path parameters with their values
|
|
|
|
| 294 |
# Last parameter in URI (parts[-1]) maps to last parameter in path, and so on
|
| 295 |
for i, param_name in enumerate(param_matches):
|
| 296 |
# Ensure we don't use resource identifier as parameter
|
| 297 |
+
if i < expected_param_count:
|
| 298 |
+
# Get values from the end of parts
|
| 299 |
+
param_value = parts[-1 -i]
|
| 300 |
path_params[param_name] = param_value
|
| 301 |
|
| 302 |
# Replace path parameters with their values
|