Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for tutorial006_py310 (0.37 sec)

  1. docs/uk/docs/tutorial/body-nested-models.md

    {* ../../docs_src/body_nested_models/tutorial005_py310.py hl[2,8] *}
    
    Рядок буде перевірено як дійсну URL-адресу і задокументовано в JSON Schema / OpenAPI як URL.
    
    ## Атрибути зі списками підмоделей
    
    У Pydantic Ви можете використовувати моделі як підтипи для `list`, `set` тощо:
    
    {* ../../docs_src/body_nested_models/tutorial006_py310.py hl[18] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Feb 28 14:18:01 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. docs/ru/docs/tutorial/body-nested-models.md

    Например, мы можем определить модель `Image`:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[7:9] *}
    
    ### Использование подмодели как типа { #use-the-submodel-as-a-type }
    
    Также мы можем использовать эту модель как тип атрибута:
    
    {* ../../docs_src/body_nested_models/tutorial004_py310.py hl[18] *}
    
    Это означает, что **FastAPI** будет ожидать тело запроса, аналогичное этому:
    
    ```JSON
    {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  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/es/docs/tutorial/response-model.md

    {* ../../docs_src/response_model/tutorial003_py310.py hl[9,11,16] *}
    
    Aquí, aunque nuestra *path operation function* está devolviendo el mismo usuario de entrada que contiene la contraseña:
    
    {* ../../docs_src/response_model/tutorial003_py310.py hl[24] *}
    
    ...hemos declarado el `response_model` para ser nuestro modelo `UserOut`, que no incluye la contraseña:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 17.7K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/body.md

    Первое, что нужно сделать, — импортировать `BaseModel` из пакета `pydantic`:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[2] *}
    
    ## Создайте модель данных { #create-your-data-model }
    
    Затем опишите свою модель данных как класс, наследующийся от `BaseModel`.
    
    Используйте стандартные типы Python для всех атрибутов:
    
    {* ../../docs_src/body/tutorial001_py310.py hl[5:9] *}
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/extra-models.md

    ///
    
    ## Множественные модели { #multiple-models }
    
    Ниже изложена основная идея того, как могут выглядеть эти модели с полями для паролей, а также описаны места, где они используются:
    
    {* ../../docs_src/extra_models/tutorial001_py310.py hl[7,9,14,20,22,27:28,31:33,38:39] *}
    
    /// info | Информация
    
    В Pydantic v1 метод назывался `.dict()`, в Pydantic v2 он помечен как устаревший (но всё ещё поддерживается) и переименован в `.model_dump()`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top