Apply suggestions from code review

This commit is contained in:
Motov Yurii 2025-11-11 12:16:34 +01:00 committed by GitHub
parent 16d4d14578
commit 637510f429
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -276,9 +276,13 @@ In other words, `None` is not an acceptable runtime value for query parameters
If you want to accept special values (like `"None"` or an empty string) and interpret them as `None` in your application, you can handle them manually in your function:
{* ../../docs_src/query_params_str_validations/tutorial006d_an_py310.py hl[9,11] *}
{* ../../docs_src/query_params_str_validations/tutorial006d_an_py310.py hl[9:13 18] *}
> **Note**: This example uses `BeforeValidator`, which is only available in **Pydantic v2**.
/// note
This example uses `BeforeValidator`, which is only available in **Pydantic v2**.
///
## Query parameter list / multiple values { #query-parameter-list-multiple-values }