Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 849 for Pydantics (0.05 sec)

  1. docs/pt/docs/tutorial/schema-extra-example.md

    Aqui estão várias formas de se fazer isso.
    
    ## `schema_extra` do Pydantic
    
    Você pode declarar um `example` para um modelo Pydantic usando `Config` e `schema_extra`, conforme descrito em <a href="https://docs.pydantic.dev/latest/concepts/json_schema/#schema-customization" class="external-link" target="_blank">Documentação do Pydantic: Schema customization</a>:
    
    ```Python hl_lines="15-23"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/cookie-param-models.md

    ///
    
    ## Cookies com Modelos Pydantic
    
    Declare o parâmetro de **cookie** que você precisa em um **modelo Pydantic**, e depois declare o parâmetro como um `Cookie`:
    
    //// tab | Python 3.10+
    
    ```Python hl_lines="9-12  16"
    {!> ../../docs_src/cookie_param_models/tutorial001_an_py310.py!}
    ```
    
    ////
    
    //// tab | Python 3.9+
    
    ```Python hl_lines="9-12  16"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 07 20:18:07 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/encoder.md

    👆 💪 ⚙️ `jsonable_encoder` 👈.
    
    ⚫️ 📨 🎚, 💖 Pydantic 🏷, &amp; 📨 🎻 🔗 ⏬:
    
    //// tab | 🐍 3️⃣.6️⃣ &amp; 🔛
    
    ```Python hl_lines="5  22"
    {!> ../../docs_src/encoder/tutorial001.py!}
    ```
    
    ////
    
    //// tab | 🐍 3️⃣.1️⃣0️⃣ &amp; 🔛
    
    ```Python hl_lines="4  21"
    {!> ../../docs_src/encoder/tutorial001_py310.py!}
    ```
    
    ////
    
    👉 🖼, ⚫️ 🔜 🗜 Pydantic 🏷 `dict`, &amp; `datetime` `str`.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_dataclasses/test_tutorial002.py

                        "title": "Item",
                        "required": IsOneOf(
                            ["name", "price", "tags", "description", "tax"],
                            # TODO: remove when deprecating Pydantic v1
                            ["name", "price"],
                        ),
                        "type": "object",
                        "properties": {
                            "name": {"title": "Name", "type": "string"},
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Jul 31 14:09:15 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/body-updates.md

    ///
    
    ### Usando o parâmetro `exclude_unset` do Pydantic
    
    Se você quiser receber atualizações parciais, é muito útil usar o parâmetro `exclude_unset` no método `.model_dump()` do modelo do Pydantic.
    
    Como `item.model_dump(exclude_unset=True)`.
    
    /// info | Informação
    
    No Pydantic v1, o método que era chamado `.dict()` e foi depreciado (mas ainda suportado) no Pydantic v2. Agora, deve-se usar o método `.model_dump()`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 14 09:16:06 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. docs/ja/docs/tutorial/body-fields.md

    `Query`や`Path`、`Body`を使って *path operation関数* のパラメータに追加のバリデーションやメタデータを宣言するのと同じように、Pydanticの`Field`を使ってPydanticモデルの内部でバリデーションやメタデータを宣言することができます。
    
    ## `Field`のインポート
    
    まず、以下のようにインポートします:
    
    ```Python hl_lines="4"
    {!../../docs_src/body_fields/tutorial001.py!}
    ```
    
    /// warning | "注意"
    
    `Field`は他の全てのもの(`Query`、`Path`、`Body`など)とは違い、`fastapi`からではなく、`pydantic`から直接インポートされていることに注意してください。
    
    ///
    
    ## モデルの属性の宣言
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_multiple_params/test_tutorial001.py

                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["path", "item_id"],
                        "msg": "value is not a valid integer",
                        "type": "type_error.integer",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_body_multiple_params/test_tutorial001_an_py310.py

                        "input": "foo",
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
                        "loc": ["path", "item_id"],
                        "msg": "value is not a valid integer",
                        "type": "type_error.integer",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/body.md

    Он улучшает поддержку редактором моделей Pydantic в части:
    
    * автодополнения,
    * проверки типов,
    * рефакторинга,
    * поиска,
    * инспектирования.
    
    ///
    
    ## Использование модели
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/path-operation-advanced-configuration.md

    //// tab | Pydantic v2
    
    ```Python hl_lines="17-22  24"
    {!> ../../docs_src/path_operation_advanced_configuration/tutorial007.py!}
    ```
    
    ////
    
    //// tab | Pydantic v1
    
    ```Python hl_lines="17-22  24"
    {!> ../../docs_src/path_operation_advanced_configuration/tutorial007_pv1.py!}
    ```
    
    ////
    
    /// info
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top