From 2649c128c9c46e539ce6a57fdfbc4cfe5421b86c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Wed, 15 Apr 2026 15:54:12 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/en/docs/tutorial/handling-errors.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/en/docs/tutorial/handling-errors.md b/docs/en/docs/tutorial/handling-errors.md index 6dafee060b..731f6bf8db 100644 --- a/docs/en/docs/tutorial/handling-errors.md +++ b/docs/en/docs/tutorial/handling-errors.md @@ -243,7 +243,7 @@ If you want to use the exception along with the same default exception handlers In this example you are just printing the error with a very expressive message, but you get the idea. You can use the exception and then just reuse the default exception handlers. -### Handling Validation for Path Parameters +### Handling Validation for Path Parameters { #handling-validation-for-path-parameters } In real-world applications, you may need to validate input values beyond basic type checking. @@ -265,4 +265,3 @@ def get_user(user_id: int): ``` This ensures that invalid values are handled gracefully and provides clear feedback to API clients. You can also use validation libraries like Pydantic for more complex constraints. -