Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 327 for tutorial006_py310 (0.06 sec)

  1. docs/pt/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    A string será verificada para se tornar uma URL válida e documentada no JSON Schema / OpenAPI como tal.
    
    ## Atributos como listas de submodelos { #attributes-with-lists-of-submodels }
    
    Você também pode usar modelos Pydantic como subtipos de `list`, `set`, etc:
    
    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_body_nested_models/test_tutorial006.py

    from dirty_equals import IsList
    from fastapi.testclient import TestClient
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial006_py39"),
            pytest.param("tutorial006_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.body_nested_models.{request.param}")
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/query-params.md

        "needy": "sooooneedy"
    }
    ```
    
    E claro, você pode definir alguns parâmetros como obrigatórios, alguns possuindo um valor padrão, e outros sendo totalmente opcionais:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    Nesse caso, existem 3 parâmetros de consulta:
    
    * `needy`, um `str` obrigatório.
    * `skip`, um `int` com o valor padrão `0`.
    * `limit`, um `int` opcional.
    
    /// tip | Dica
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/query-params.md

        "needy": "sooooneedy"
    }
    ```
    
    Y por supuesto, puedes definir algunos parámetros como requeridos, algunos con un valor por defecto, y algunos enteramente opcionales:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    En este caso, hay 3 parámetros de query:
    
    * `needy`, un `str` requerido.
    * `skip`, un `int` con un valor por defecto de `0`.
    * `limit`, un `int` opcional.
    
    /// tip | Consejo
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_response_model/test_tutorial006.py

    from fastapi.testclient import TestClient
    from inline_snapshot import snapshot
    
    from ...utils import needs_py310
    
    
    @pytest.fixture(
        name="client",
        params=[
            pytest.param("tutorial006_py39"),
            pytest.param("tutorial006_py310", marks=needs_py310),
        ],
    )
    def get_client(request: pytest.FixtureRequest):
        mod = importlib.import_module(f"docs_src.response_model.{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
    - 6.5K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/query-params.md

    }
    ```
    
    Конечно, вы можете определить некоторые параметры как обязательные, некоторые — со значением по умолчанию, а некоторые — полностью необязательные:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    В этом примере, у нас есть 3 параметра запроса:
    
    * `needy`, обязательный `str`.
    * `skip`, типа `int` и со значением по умолчанию `0`.
    * `limit`, необязательный `int`.
    
    /// tip | Подсказка
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  7. docs/tr/docs/tutorial/query-params.md

        "needy": "sooooneedy"
    }
    ```
    
    Ve elbette, bazı parametreleri zorunlu, bazılarını varsayılan değerli ve bazılarını tamamen opsiyonel olarak tanımlayabilirsiniz:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    Bu durumda, 3 tane sorgu parametresi var olacaktır:
    
    * `needy`, zorunlu bir `str`.
    * `skip`, varsayılan değeri `0` olan bir `int`.
    * `limit`, isteğe bağlı bir `int`.
    
    /// tip | İpucu
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. docs/uk/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    Рядок буде перевірено як дійсну URL-адресу і задокументовано в JSON Schema / OpenAPI як URL.
    
    ## Атрибути зі списками підмоделей
    
    У Pydantic Ви можете використовувати моделі як підтипи для `list`, `set` тощо:
    
    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Feb 28 14:18:01 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    The string will be checked to be a valid URL, and documented in JSON Schema / OpenAPI as such.
    
    ## Attributes with lists of submodels { #attributes-with-lists-of-submodels }
    
    You can also use Pydantic models as subtypes of `list`, `set`, etc.:
    
    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/body-nested-models.md

    Например, мы можем определить модель `Image`:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *}
    
    ### Использование подмодели как типа { #use-the-submodel-as-a-type }
    
    Также мы можем использовать эту модель как тип атрибута:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *}
    
    Это означает, что **FastAPI** будет ожидать тело запроса, аналогичное этому:
    
    ```JSON
    {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top