Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 395 for Pydantic (0.04 sec)

  1. docs/pt/docs/python-types.md

    /// info | Informação
    
    Para saber mais sobre o <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic, verifique a sua documentação</a>.
    
    ///
    
    O **FastAPI** é todo baseado em Pydantic.
    
    Você verá muito mais disso na prática no [Tutorial - Guia do usuário](tutorial/index.md){.internal-link target=_blank}.
    
    /// tip | Dica
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 10:32:53 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  2. docs/zh/docs/advanced/additional-responses.md

    每个响应字典都可以有一个关键模型,其中包含一个 `Pydantic` 模型,就像 `response_model` 一样。
    
    **FastAPI**将采用该模型,生成其`JSON Schema`并将其包含在`OpenAPI`中的正确位置。
    
    例如,要声明另一个具有状态码 `404` 和`Pydantic`模型 `Message` 的响应,可以写:
    {* ../../docs_src/additional_responses/tutorial001.py hl[18,22] *}
    
    /// note
    
    请记住,您必须直接返回 `JSONResponse` 。
    
    ///
    
    /// info
    
    `model` 密钥不是OpenAPI的一部分。
    **FastAPI**将从那里获取`Pydantic`模型,生成` JSON Schema` ,并将其放在正确的位置。
    - 正确的位置是:
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:29:26 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. docs/em/docs/advanced/response-directly.md

    ///
    
    &amp; 🕐❔ 👆 📨 `Response`, **FastAPI** 🔜 🚶‍♀️ ⚫️ 🔗.
    
    ⚫️ 🏆 🚫 🙆 💽 🛠️ ⏮️ Pydantic 🏷, ⚫️ 🏆 🚫 🗜 🎚 🙆 🆎, ♒️.
    
    👉 🤝 👆 📚 💪. 👆 💪 📨 🙆 📊 🆎, 🔐 🙆 💽 📄 ⚖️ 🔬, ♒️.
    
    ## ⚙️ `jsonable_encoder` `Response`
    
    ↩️ **FastAPI** 🚫 🙆 🔀 `Response` 👆 📨, 👆 ✔️ ⚒ 💭 ⚫️ 🎚 🔜 ⚫️.
    
    🖼, 👆 🚫🔜 🚮 Pydantic 🏷 `JSONResponse` 🍵 🥇 🏭 ⚫️ `dict` ⏮️ 🌐 📊 🆎 (💖 `datetime`, `UUID`, ♒️) 🗜 🎻-🔗 🆎.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/sql-databases.md

    A classe `Hero` é muito semelhante a um modelo Pydantic (na verdade, por baixo dos panos, ela *é um modelo Pydantic*).
    
    Existem algumas diferenças:
    
    * `table=True` informa ao SQLModel que este é um *modelo de tabela*, ele deve representar uma **tabela** no banco de dados SQL, não é apenas um *modelo de dados* (como seria qualquer outra classe Pydantic comum).
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Oct 27 15:25:29 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  5. .github/workflows/test.yml

            run: uv pip install -r requirements-tests.txt
          - name: Install Pydantic v1
            if: matrix.pydantic-version == 'pydantic-v1'
            run: uv pip install "pydantic>=1.10.0,<2.0.0"
          - name: Install Pydantic v2
            if: matrix.pydantic-version == 'pydantic-v2'
            run: uv pip install --upgrade "pydantic>=2.0.2,<3.0.0"
          # TODO: Remove this once Python 3.8 is no longer supported
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Aug 15 21:44:06 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. docs/en/docs/python-types.md

    Notice that this means "`one_person` is an **instance** of the class `Person`".
    
    It doesn't mean "`one_person` is the **class** called `Person`".
    
    ## Pydantic models { #pydantic-models }
    
    <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> is a Python library to perform data validation.
    
    You declare the "shape" of the data as classes with attributes.
    
    And each attribute has a type.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  7. docs/pt/docs/deployment/versions.md

    ## Sobre Pydantic
    
    Pydantic incluí os testes para **FastAPI** em seus próprios testes, então as novas versões de Pydantic (acima da `1.0.0`) sempre serão compatíveis com FastAPI.
    
    Você pode fixar qualquer versão de Pydantic que desejar, desde que seja acima da `1.0.0` e abaixo da `2.0.0`.
    
    Por exemplo:
    
    ```txt
    pydantic>=1.2.0,<2.0.0
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/header-param-models.md

    # 헤더 매개변수 모델
    
    관련 있는 **헤더 매개변수** 그룹이 있는 경우, **Pydantic 모델**을 생성하여 선언할 수 있습니다.
    
    이를 통해 **여러 위치**에서 **모델을 재사용** 할 수 있고 모든 매개변수에 대한 유효성 검사 및 메타데이터를 한 번에 선언할 수도 있습니다. 😎
    
    /// note | 참고
    
    이 기능은 FastAPI 버전 `0.115.0` 이후부터 지원됩니다. 🤓
    
    ///
    
    ## Pydantic 모델을 사용한 헤더 매개변수
    
    **Pydantic 모델**에 필요한 **헤더 매개변수**를 선언한 다음, 해당 매개변수를 `Header`로 선언합니다:
    
    {* ../../docs_src/header_param_models/tutorial001_an_py310.py hl[9:14,18] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 09 12:45:39 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/response-directly.md

    # Devolver una Response Directamente
    
    Cuando creas una *path operation* en **FastAPI**, normalmente puedes devolver cualquier dato desde ella: un `dict`, una `list`, un modelo de Pydantic, un modelo de base de datos, etc.
    
    Por defecto, **FastAPI** convertiría automáticamente ese valor de retorno a JSON usando el `jsonable_encoder` explicado en [JSON Compatible Encoder](../tutorial/encoder.md){.internal-link target=_blank}.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 17:46:44 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. docs/de/docs/advanced/response-directly.md

    # Eine Response direkt zurückgeben
    
    Wenn Sie eine **FastAPI** *Pfadoperation* erstellen, können Sie normalerweise beliebige Daten davon zurückgeben: ein `dict`, eine `list`e, ein Pydantic-Modell, ein Datenbankmodell, usw.
    
    Standardmäßig konvertiert **FastAPI** diesen Rückgabewert automatisch nach JSON, mithilfe des `jsonable_encoder`, der in [JSON-kompatibler Encoder](../tutorial/encoder.md){.internal-link target=_blank} erläutert wird.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top