Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for 22 (0.01 sec)

  1. docs/es/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    ```
    
    En algunos casos, incluso es posible tener modelos de Pydantic v1 y v2 en la misma path operation de tu app de FastAPI:
    
    {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *}
    
    En el ejemplo anterior, el modelo de entrada es un modelo de Pydantic v1 y el modelo de salida (definido en `response_model=ItemV2`) es un modelo de Pydantic v2.
    
    ### Parámetros de Pydantic v1 { #pydantic-v1-parameters }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:16:35 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. docs/pt/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    ```
    
    Em alguns casos, é até possível ter modelos Pydantic v1 e v2 na mesma operação de rota na sua aplicação FastAPI:
    
    {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *}
    
    No exemplo acima, o modelo de entrada é um modelo Pydantic v1, e o modelo de saída (definido em `response_model=ItemV2`) é um modelo Pydantic v2.
    
    ### Parâmetros do Pydantic v1 { #pydantic-v1-parameters }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  3. docs/de/docs/how-to/migrate-from-pydantic-v1-to-pydantic-v2.md

    In einigen Fällen ist es sogar möglich, sowohl Pydantic‑v1‑ als auch Pydantic‑v2‑Modelle in derselben **Pfadoperation** Ihrer FastAPI‑App zu verwenden:
    
    {* ../../docs_src/pydantic_v1_in_v2/tutorial003_an_py310.py hl[2:3,6,12,21:22] *}
    
    Im obigen Beispiel ist das Eingabemodell ein Pydantic‑v1‑Modell, und das Ausgabemodell (definiert in `response_model=ItemV2`) ist ein Pydantic‑v2‑Modell.
    
    ### Pydantic v1 Parameter { #pydantic-v1-parameters }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  4. docs/de/docs/tutorial/response-model.md

    ... haben wir deklariert, dass `response_model` das Modell `UserOut` ist, welches das Passwort nicht enthält:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    Darum wird **FastAPI** sich darum kümmern, dass alle Daten, die nicht im Ausgabemodell deklariert sind, herausgefiltert werden (mittels Pydantic).
    
    ### `response_model` oder Rückgabewert { #response-model-or-return-type }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...we declared the `response_model` to be our model `UserOut`, that doesn't include the password:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    So, **FastAPI** will take care of filtering out all the data that is not declared in the output model (using Pydantic).
    
    ### `response_model` or Return Type { #response-model-or-return-type }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...declaramos o `response_model` como nosso modelo `UserOut`, que não inclui a senha:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    Então, **FastAPI** cuidará de filtrar todos os dados que não são declarados no modelo de saída (usando Pydantic).
    
    ### `response_model` ou Tipo de Retorno { #response-model-or-return-type }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...мы объявили `response_model` как модель `UserOut`, в которой нет пароля:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    Таким образом, **FastAPI** позаботится о том, чтобы отфильтровать все данные, не объявленные в выходной модели (используя Pydantic).
    
    ### `response_model` или возвращаемый тип { #response-model-or-return-type }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  8. docs/es/docs/tutorial/extra-models.md

    De esa manera, podemos declarar solo las diferencias entre los modelos (con `password` en texto plano, con `hashed_password` y sin contraseña):
    
    {* ../../docs_src/extra_models/tutorial002_py310.py hl[7,13:14,17:18,21:22] *}
    
    ## `Union` o `anyOf` { #union-or-anyof }
    
    Puedes declarar un response que sea la `Union` de dos o más tipos, eso significa que el response sería cualquiera de ellos.
    
    Se definirá en OpenAPI con `anyOf`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/path-operation-advanced-configuration.md

    <img src="/img/tutorial/path-operation-advanced-configuration/image01.png">
    
    Y si ves el OpenAPI resultante (en `/openapi.json` en tu API), verás tu extensión como parte de la *path operation* específica también:
    
    ```JSON hl_lines="22"
    {
        "openapi": "3.1.0",
        "info": {
            "title": "FastAPI",
            "version": "0.1.0"
        },
        "paths": {
            "/items/": {
                "get": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  10. docs/pt/docs/advanced/path-operation-advanced-configuration.md

    E se você olhar o esquema OpenAPI resultante (na rota `/openapi.json` da sua API), você verá que a sua extensão também faz parte da *operação de rota* específica:
    
    ```JSON hl_lines="22"
    {
        "openapi": "3.1.0",
        "info": {
            "title": "FastAPI",
            "version": "0.1.0"
        },
        "paths": {
            "/items/": {
                "get": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.7K bytes
    - Viewed (0)
Back to top