Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 395 for Pydantics (0.04 sec)

  1. docs/pt/docs/advanced/dataclasses.md

    Então, mesmo com o código acima que não usa Pydantic explicitamente, o FastAPI está usando Pydantic para converter essas dataclasses padrão para a versão do Pydantic.
    
    E claro, ele suporta o mesmo:
    
    * validação de dados
    * serialização de dados
    * documentação de dados, etc.
    
    Isso funciona da mesma forma que com os modelos Pydantic. E na verdade é alcançado da mesma maneira por baixo dos panos, usando Pydantic.
    
    /// info | Informação
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/settings.md

    ## Pydantic `Settings` { #pydantic-settings }
    
    Fortunately, Pydantic provides a great utility to handle these settings coming from environment variables with <a href="https://docs.pydantic.dev/latest/concepts/pydantic_settings/" class="external-link" target="_blank">Pydantic: Settings management</a>.
    
    ### Install `pydantic-settings` { #install-pydantic-settings }
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. docs/de/docs/advanced/settings.md

    ## Pydantic `Settings`
    
    Glücklicherweise bietet Pydantic ein großartiges Werkzeug zur Verarbeitung dieser Einstellungen, die von Umgebungsvariablen stammen, mit <a href="https://docs.pydantic.dev/latest/concepts/pydantic_settings/" class="external-link" target="_blank">Pydantic: Settings Management</a>.
    
    ### `pydantic-settings` installieren
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. docs/es/docs/tutorial/body-updates.md

    ///
    
    ### Uso del parámetro `exclude_unset` de Pydantic
    
    Si quieres recibir actualizaciones parciales, es muy útil usar el parámetro `exclude_unset` en el `.model_dump()` del modelo de Pydantic.
    
    Como `item.model_dump(exclude_unset=True)`.
    
    /// info | Información
    
    En Pydantic v1 el método se llamaba `.dict()`, fue deprecado (pero aún soportado) en Pydantic v2, y renombrado a `.model_dump()`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/response-model.md

        "price": 50.2
    }
    ```
    
    /// info
    
    In Pydantic v1 the method was called `.dict()`, it was deprecated (but still supported) in Pydantic v2, and renamed to `.model_dump()`.
    
    The examples here use `.dict()` for compatibility with Pydantic v1, but you should use `.model_dump()` instead if you can use Pydantic v2.
    
    ///
    
    /// info
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 16K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/response-model.md

    ```
    
    /// info | Informação
    
    No Pydantic v1, o método era chamado `.dict()`, ele foi descontinuado (mas ainda suportado) no Pydantic v2 e renomeado para `.model_dump()`.
    
    Os exemplos aqui usam `.dict()` para compatibilidade com Pydantic v1, mas você deve usar `.model_dump()` em vez disso se puder usar Pydantic v2.
    
    ///
    
    /// info | Informação
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Nov 26 22:51:05 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. docs/es/docs/tutorial/schema-extra-example.md

    Aquí tienes varias formas de hacerlo.
    
    ## Datos extra de JSON Schema en modelos de Pydantic
    
    Puedes declarar `examples` para un modelo de Pydantic que se añadirá al JSON Schema generado.
    
    //// tab | Pydantic v2
    
    {* ../../docs_src/schema_extra_example/tutorial001_py310.py hl[13:24] *}
    
    ////
    
    //// tab | Pydantic v1
    
    {* ../../docs_src/schema_extra_example/tutorial001_pv1_py310.py hl[13:23] *}
    
    ////
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. docs/de/docs/advanced/path-operation-advanced-configuration.md

    //// tab | Pydantic v2
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial007.py hl[26:33] *}
    
    ////
    
    //// tab | Pydantic v1
    
    {* ../../docs_src/path_operation_advanced_configuration/tutorial007_pv1.py hl[26:33] *}
    
    ////
    
    /// info
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. docs/de/docs/tutorial/response-model.md

        "name": "Foo",
        "price": 50.2
    }
    ```
    
    /// info
    
    In Pydantic v1 hieß diese Methode `.dict()`, in Pydantic v2 wurde sie deprecated (aber immer noch unterstützt) und in `.model_dump()` umbenannt.
    
    Die Beispiele hier verwenden `.dict()` für die Kompatibilität mit Pydantic v1, Sie sollten jedoch stattdessen `.model_dump()` verwenden, wenn Sie Pydantic v2 verwenden können.
    
    ///
    
    /// info
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  10. docs/em/docs/tutorial/response-model.md

    ### ❌ 📨 🆎 ✍
    
    ✋️ 🕐❔ 👆 📨 🎏 ❌ 🎚 👈 🚫 ☑ Pydantic 🆎 (✅ 💽 🎚) &amp; 👆 ✍ ⚫️ 💖 👈 🔢, FastAPI 🔜 🔄 ✍ Pydantic 📨 🏷 ⚪️➡️ 👈 🆎 ✍, &amp; 🔜 ❌.
    
    🎏 🔜 🔨 🚥 👆 ✔️ 🕳 💖 <abbr title='A union between multiple types means "any of these types".'>🇪🇺</abbr> 🖖 🎏 🆎 🌐❔ 1️⃣ ⚖️ 🌅 👫 🚫 ☑ Pydantic 🆎, 🖼 👉 🔜 ❌ 👶:
    
    {* ../../docs_src/response_model/tutorial003_04.py hl[10] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top