Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 312 for tutorial006c_py310 (0.06 sec)

  1. docs/en/docs/tutorial/response-model.md

    We can instead create an input model with the plaintext password and an output model without it:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Here, even though our *path operation function* is returning the same input user that contains the password:
    
    {* ../../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:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Aqui, embora nossa *função de operação de rota* esteja retornando o mesmo usuário de entrada que contém a senha:
    
    {* ../../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] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  3. 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)
  4. docs/zh/docs/tutorial/body-nested-models.md

    例如,在 `Image` 模型中我们有一个 `url` 字段,我们可以把它声明为 Pydantic 的 `HttpUrl`,而不是 `str`:
    
    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    该字符串将被检查是否为有效的 URL,并在 JSON Schema / OpenAPI 文档中进行记录。
    
    ## 带有一组子模型的属性
    
    你还可以将 Pydantic 模型用作 `list`、`set` 等的子类型:
    
    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    这将期望(转换,校验,记录文档等)下面这样的 JSON 请求体:
    
    ```JSON hl_lines="11"
    {
        "name": "Foo",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/path-operation-configuration.md

    {* ../../docs_src/path_operation_configuration/tutorial004_py310.py hl[17:25] *}
    
    Será usado en la documentación interactiva:
    
    <img src="/img/tutorial/path-operation-configuration/image02.png">
    
    ## Descripción del Response { #response-description }
    
    Puedes especificar la descripción del response con el parámetro `response_description`:
    
    {* ../../docs_src/path_operation_configuration/tutorial005_py310.py hl[19] *}
    
    /// info | Información
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/path-operation-configuration.md

    {* ../../docs_src/path_operation_configuration/tutorial004_py310.py hl[17:25] *}
    
    Ela será usada nas documentações interativas:
    
    <img src="/img/tutorial/path-operation-configuration/image02.png">
    
    ## Descrição da resposta { #response-description }
    
    Você pode especificar a descrição da resposta com o parâmetro `response_description`:
    
    {* ../../docs_src/path_operation_configuration/tutorial005_py310.py hl[19] *}
    
    /// info | Informação
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Obwohl unsere *Pfadoperation-Funktion* hier denselben `user` von der Eingabe zurückgibt, der das Passwort enthält:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ... haben wir deklariert, dass `response_model` das Modell `UserOut` ist, welches das Passwort nicht enthält:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  8. docs/uk/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Тут, навіть якщо *функція операції шляху* повертає об'єкт користувача, який містить пароль:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...ми оголосили `response_model` як нашу модель `UserOut`, яка не містить пароля:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Jun 24 19:14:01 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Здесь, хотя *функция-обработчик пути* возвращает тот же входной объект пользователя, содержащий пароль:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...мы объявили `response_model` как модель `UserOut`, в которой нет пароля:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[22] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/query-params.md

        "needy": "sooooneedy"
    }
    ```
    
    Und natürlich können Sie einige Parameter als erforderlich, einige mit Defaultwert, und einige als vollständig optional definieren:
    
    {* ../../docs_src/query_params/tutorial006_py310.py hl[8] *}
    
    In diesem Fall gibt es drei Query-Parameter:
    
    * `needy`, ein erforderlicher `str`.
    * `skip`, ein `int` mit einem Defaultwert `0`.
    * `limit`, ein optionales `int`.
    
    /// tip | Tipp
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 5K bytes
    - Viewed (0)
Back to top