docs: 将仓库代码注释统一为中文
This commit is contained in:
@@ -40,7 +40,7 @@ async def validation_error_handler(_: Request, exc: RequestValidationError) -> J
|
||||
error=ErrorDetail(
|
||||
code="VALIDATION_ERROR",
|
||||
message="Request validation failed.",
|
||||
# Pydantic ctx can contain exception objects; input may contain API keys.
|
||||
# Pydantic ctx可以包含异常对象;输入可能包含 API 键。
|
||||
details={"errors": [
|
||||
{key: error[key] for key in ("type", "loc", "msg") if key in error}
|
||||
for error in exc.errors()
|
||||
|
||||
Reference in New Issue
Block a user