This commit is contained in:
Ruslan Markelov 2026-02-14 09:01:15 +00:00 committed by GitHub
commit 04dc6698cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ validation_error_response_definition = {
"title": "Detail",
"type": "array",
"items": {"$ref": REF_PREFIX + "ValidationError"},
}
},
},
}
@ -245,8 +245,8 @@ def get_openapi_operation_metadata(
operation_id = route.operation_id or route.unique_id
if operation_id in operation_ids:
message = (
f"Duplicate Operation ID {operation_id} for function "
+ f"{route.endpoint.__name__}"
f"Duplicate Operation ID {operation_id} "
f"for function {route.endpoint.__name__}"
)
file_name = getattr(route.endpoint, "__globals__", {}).get("__file__")
if file_name: