- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 100 for min_length (0.04 sec)
-
docs/en/docs/tutorial/query-params-str-validations.md
Generic validations and metadata: * `alias` * `title` * `description` * `deprecated` Validations specific for strings: * `min_length` * `max_length` * `pattern` Custom validations using `AfterValidator`. In these examples you saw how to declare validations for `str` values.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 20 15:55:38 UTC 2025 - 16.7K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial007_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 336 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial008_py310.py
@app.get("/items/") async def read_items( q: str | None = Query( default=None, title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, ), ): results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} if q: results.update({"q": q})
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 434 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial008_py39.py
@app.get("/items/") async def read_items( q: Union[str, None] = Query( default=None, title="Query string", description="Query string for the items to search in the database that have a good match", min_length=3, ), ): results = {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]} if q: results.update({"q": q})
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 466 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial003_py310.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri May 13 23:38:22 UTC 2022 - 290 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial006c_an_py310.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Feb 15 16:23:59 UTC 2025 - 301 bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial003_an_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Mar 26 16:56:53 UTC 2024 - 343 bytes - Viewed (0) -
docs/ko/docs/tutorial/query-params-str-validations.md
`Optional` 부분은 편집기에게 더 나은 지원을 제공하기 위해서만 사용됩니다. /// 또한 `Query`로 더 많은 매개변수를 전달할 수 있습니다. 지금의 경우 문자열에 적용되는 `max_length` 매개변수입니다: ```Python q: str = Query(None, max_length=50) ``` 이는 데이터를 검증할 것이고, 데이터가 유효하지 않다면 명백한 오류를 보여주며, OpenAPI 스키마 *경로 작동*에 매개변수를 문서화 합니다. ## 검증 추가 매개변수 `min_length` 또한 추가할 수 있습니다: {* ../../docs_src/query_params_str_validations/tutorial003.py hl[9] *} ## 정규식 추가
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Mon Nov 18 02:25:44 UTC 2024 - 9.2K bytes - Viewed (0) -
docs/uk/docs/tutorial/query-params-str-validations.md
Загальні валідації та метаінформація: * `alias` * `title` * `description` * `deprecated` Валідації, специфічні для рядків: * `min_length` * `max_length` * `pattern` Кастомні валідації за допомогою `AfterValidator`. У цих прикладах Ви побачили, як оголошувати валідації для значень `str`.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri May 30 14:17:24 UTC 2025 - 26.1K bytes - Viewed (0) -
docs_src/query_params_str_validations/tutorial010_an_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Tue Oct 24 20:26:06 UTC 2023 - 635 bytes - Viewed (0)