Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 287 for tutorial002_an_py310 (0.08 sec)

  1. docs/ru/docs/tutorial/query-param-models.md

    Вы можете сконфигурировать Pydantic-модель так, чтобы запретить (`forbid`) все дополнительные (`extra`) поля.
    
    {* ../../docs_src/query_param_models/tutorial002_an_py310.py hl[10] *}
    
    Если клиент попробует отправить **дополнительные** данные в **query-параметрах**, то в ответ он получит **ошибку**.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_cookie_param_models/test_tutorial002.py

    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=[needs_py310]),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_an_py310", marks=[needs_py310]),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.cookie_param_models.{request.param}")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  3. docs/uk/docs/tutorial/query-param-models.md

    Ви можете використати конфігурацію моделі Pydantic, щоб заборонити (`forbid`) будь-які зайві (`extra`) поля:
    
    {* ../../docs_src/query_param_models/tutorial002_an_py310.py hl[10] *}
    
    Якщо клієнт спробує надіслати **зайві** дані у **query параметрах**, він отримає **помилку**.
    
    Наприклад, якщо клієнт спробує надіслати query параметр `tool` зі значенням `plumbus`, як у цьому запиті:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Jun 05 12:12:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_header_params/test_tutorial002.py

    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=needs_py310),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_an_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.header_params.{request.param}")
    
        client = TestClient(mod.app)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/cookie-param-models.md

    You can use Pydantic's model configuration to `forbid` any `extra` fields:
    
    {* ../../docs_src/cookie_param_models/tutorial002_an_py310.py hl[10] *}
    
    If a client tries to send some **extra cookies**, they will receive an **error** response.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  6. docs/zh/docs/tutorial/query-param-models.md

    </div>
    
    ## 禁止额外的查询参数
    
    在一些特殊的使用场景中(可能不是很常见),你可能希望**限制**你要接收的查询参数。
    
    你可以使用 Pydantic 的模型配置来 `forbid`(意为禁止 —— 译者注)任何 `extra`(意为额外的 —— 译者注)字段:
    
    {* ../../docs_src/query_param_models/tutorial002_an_py310.py hl[10] *}
    
    假设有一个客户端尝试在**查询参数**中发送一些**额外的**数据,它将会收到一个**错误**响应。
    
    例如,如果客户端尝试发送一个值为 `plumbus` 的 `tool` 查询参数,如:
    
    ```http
    https://example.com/items/?limit=10&tool=plumbus
    ```
    
    他们将收到一个**错误**响应,告诉他们查询参数 `tool` 是不允许的:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Nov 26 22:06:31 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. docs/de/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    Sie könnten also Pydantic auf die neueste Version 2 aktualisieren und die Importe so ändern, dass das Untermodul `pydantic.v1` verwendet wird, und in vielen Fällen würde es einfach funktionieren.
    
    {* ../../docs_src/pydantic_v1_in_v2/tutorial002_an_py310.py hl[2,5,15] *}
    
    /// warning | Achtung
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_header_param_models/test_tutorial002.py

    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial002_py39"),
            pytest.param("tutorial002_py310", marks=[needs_py310]),
            pytest.param("tutorial002_an_py39"),
            pytest.param("tutorial002_an_py310", marks=[needs_py310]),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.header_param_models.{request.param}")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/cookie-param-models.md

    Sie können die Modellkonfiguration von Pydantic verwenden, um `extra` Felder zu verbieten (`forbid`):
    
    {* ../../docs_src/cookie_param_models/tutorial002_an_py310.py hl[10] *}
    
    Wenn ein Client versucht, einige **zusätzliche Cookies** zu senden, erhält er eine **Error-<abbr title="Response – Antwort: Daten, die der Server zum anfragenden Client zurücksendet">Response</abbr>**.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 13:54:34 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. docs/ko/docs/tutorial/header-param-models.md

    </div>
    
    ## 추가 헤더 금지하기
    
    일부 특별한 사용 사례(흔하지는 않겠지만)에서는 수신하려는 헤더를 **제한**할 수 있습니다.
    
    Pydantic의 모델 구성을 사용하여 추가(`extra`) 필드를 금지(`forbid`)할 수 있습니다:
    
    {* ../../docs_src/header_param_models/tutorial002_an_py310.py hl[10] *}
    
    클라이언트가 **추가 헤더**를 보내려고 시도하면, **오류** 응답을 받게 됩니다.
    
    예를 들어, 클라이언트가 `plumbus` 값으로 `tool` 헤더를 보내려고 하면, 클라이언트는 헤더 매개변수 `tool`이 허용 되지 않는다는 **오류** 응답을 받게 됩니다:
    
    ```json
    {
        "detail": [
            {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Dec 09 12:45:39 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top