mirror of https://github.com/tiangolo/fastapi.git
Merge 060ca04571 into cc6ced6345
This commit is contained in:
commit
69fd97b9e9
|
|
@ -67,7 +67,7 @@ validation_error_response_definition = {
|
|||
"title": "Detail",
|
||||
"type": "array",
|
||||
"items": {"$ref": REF_PREFIX + "ValidationError"},
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -248,8 +248,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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue