- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 147 for Model (0.3 sec)
-
docs/en/docs/tutorial/response-model.md
### `response_model` Priority If you declare both a return type and a `response_model`, the `response_model` will take priority and be used by FastAPI.
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17.9K bytes - Viewed (0) -
docs/zh/docs/tutorial/response-model.md
### `response_model_include` 和 `response_model_exclude` 你还可以使用*路径操作装饰器*的 `response_model_include` 和 `response_model_exclude` 参数。 它们接收一个由属性名称 `str` 组成的 `set` 来包含(忽略其他的)或者排除(包含其他的)这些属性。 如果你只有一个 Pydantic 模型,并且想要从输出中移除一些数据,则可以使用这种快捷方法。 !!! tip 但是依然建议你使用上面提到的主意,使用多个类而不是这些参数。
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.9K bytes - Viewed (0) -
docs/ja/docs/tutorial/response-model.md
```Python hl_lines="9 11 16" {!../../../docs_src/response_model/tutorial003.py!} ``` ここでは、*path operation関数*がパスワードを含む同じ入力ユーザーを返しているにもかかわらず: ```Python hl_lines="24" {!../../../docs_src/response_model/tutorial003.py!} ``` ...`response_model`を`UserOut`と宣言したことで、パスワードが含まれていません: ```Python hl_lines="22" {!../../../docs_src/response_model/tutorial003.py!} ```
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 9.3K bytes - Viewed (0) -
docs/ru/docs/tutorial/response-model.md
### Приоритет `response_model` Если одновременно указать аннотацию типа для ответа функции и параметр `response_model` - последний будет иметь больший приоритет и FastAPI будет использовать именно его.
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 30.5K bytes - Viewed (0) -
docs/de/docs/tutorial/response-model.md
{!> ../../../docs_src/response_model/tutorial001_py39.py!} ``` === "Python 3.8+" ```Python hl_lines="17 22 24-27" {!> ../../../docs_src/response_model/tutorial001.py!} ``` !!! note "Hinweis" Beachten Sie, dass `response_model` ein Parameter der „Dekorator“-Methode ist (`get`, `post`, usw.). Nicht der *Pfadoperation-Funktion*, so wie die anderen Parameter.
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:26:58 GMT 2024 - 19.9K bytes - Viewed (0) -
docs/em/docs/tutorial/response-model.md
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 16K bytes - Viewed (0) -
docs/ko/docs/tutorial/response-model.md
```Python hl_lines="9 11 16" {!../../../docs_src/response_model/tutorial003.py!} ``` 여기서 *경로 작동 함수*가 비밀번호를 포함하는 동일한 입력 사용자를 반환할지라도: ```Python hl_lines="24" {!../../../docs_src/response_model/tutorial003.py!} ``` ...`response_model`을 `UserOut` 모델로 선언했기 때문에 비밀번호를 포함하지 않습니다: ```Python hl_lines="22" {!../../../docs_src/response_model/tutorial003.py!} ```
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 8.2K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/PerformanceTest.kt
import jetbrains.buildServer.configs.kotlin.BuildSteps import jetbrains.buildServer.configs.kotlin.ParameterDisplay import model.CIBuildModel import model.PerformanceTestBuildSpec import model.PerformanceTestType import model.Stage class PerformanceTest( model: CIBuildModel, stage: Stage, performanceTestBuildSpec: PerformanceTestBuildSpec, description: String, performanceSubProject: String,
Plain Text - Registered: Wed Apr 24 11:36:11 GMT 2024 - Last Modified: Wed Apr 24 08:17:56 GMT 2024 - 5.3K bytes - Viewed (0) -
docs/uk/docs/tutorial/encoder.md
Тим самим способом ця база даних не прийматиме об'єкт типу Pydantic model (об'єкт з атрибутами), а лише `dict`. Ви можете використовувати `jsonable_encoder` для цього. Вона приймає об'єкт, такий як Pydantic model, і повертає його версію, сумісну з JSON: === "Python 3.10+" ```Python hl_lines="4 21"
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 2.6K bytes - Viewed (0) -
docs/en/docs/how-to/async-sql-encode-databases.md
``` !!! 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. !!! note
Plain Text - Registered: Sun Apr 21 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 5.3K bytes - Viewed (0)