- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 63 for embed (0.06 sec)
-
docs/de/docs/tutorial/body-multiple-params.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.2K bytes - Viewed (0) -
misc/go_android_exec/exitcode_test.go
import ( "regexp" "strings" "testing" ) func TestExitCodeFilter(t *testing.T) { // Write text to the filter one character at a time. var out strings.Builder f, exitStr := newExitCodeFilter(&out) // Embed a "fake" exit code in the middle to check that we don't get caught on it. pre := "abc" + exitStr + "123def" text := pre + exitStr + `1` for i := 0; i < len(text); i++ { _, err := f.Write([]byte{text[i]}) if err != nil {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed May 03 14:54:58 UTC 2023 - 2.1K bytes - Viewed (0) -
docs/ko/docs/tutorial/body-multiple-params.md
기본적으로 **FastAPI**는 직접 본문으로 예측할 것입니다. 하지만, 만약 모델 내용에 `item `키를 가진 JSON으로 예측하길 원한다면, 추가적인 본문 매개변수를 선언한 것처럼 `Body`의 특별한 매개변수인 `embed`를 사용할 수 있습니다: ```Python hl_lines="17" {!../../docs_src/body_multiple_params/tutorial005.py!} ``` 아래 처럼: ```Python item: Item = Body(..., embed=True) ``` 이 경우에 **FastAPI**는 본문을 아래 대신에: ```JSON hl_lines="2" { "name": "Foo",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.2K bytes - Viewed (0) -
tests/test_request_body_parameters_media_type.py
class Product(BaseModel): name: str price: float class Shop(BaseModel): name: str @app.post("/products") async def create_product(data: Product = Body(media_type=media_type, embed=True)): pass # pragma: no cover @app.post("/shops") async def create_shop( data: Shop = Body(media_type=media_type), included: typing.List[Product] = Body(default=[], media_type=media_type), ):
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 6.4K bytes - Viewed (0) -
fastapi/param_functions.py
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Wed Oct 23 18:30:18 UTC 2024 - 62.5K bytes - Viewed (0) -
docs/ru/docs/tutorial/body-multiple-params.md
Но если вы хотите чтобы он ожидал JSON с ключом `item` с содержимым модели внутри, также как это происходит при объявлении дополнительных body-параметров, вы можете использовать специальный параметр `embed` у типа `Body`: ```Python item: Item = Body(embed=True) ``` так же, как в этом примере: //// tab | Python 3.10+ ```Python hl_lines="17" {!> ../../docs_src/body_multiple_params/tutorial005_an_py310.py!} ```
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.6K bytes - Viewed (0) -
docs/fr/docs/tutorial/body-multiple-params.md
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 8.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/body-multiple-params.md
/// ## 嵌入单个请求体参数 假设你只有一个来自 Pydantic 模型 `Item` 的请求体参数 `item`。 默认情况下,**FastAPI** 将直接期望这样的请求体。 但是,如果你希望它期望一个拥有 `item` 键并在值中包含模型内容的 JSON,就像在声明额外的请求体参数时所做的那样,则可以使用一个特殊的 `Body` 参数 `embed`: ```Python item: Item = Body(embed=True) ``` 比如: //// tab | Python 3.10+ ```Python hl_lines="17" {!> ../../docs_src/body_multiple_params/tutorial005_an_py310.py!} ``` ////
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 7.5K bytes - Viewed (0) -
docs/ja/docs/tutorial/body-multiple-params.md
Pydanticモデル`Item`のボディパラメータ`item`を1つだけ持っているとしましょう。 デフォルトでは、**FastAPI**はそのボディを直接期待します。 しかし、追加のボディパラメータを宣言したときのように、キー `item` を持つ JSON とその中のモデルの内容を期待したい場合は、特別な `Body` パラメータ `embed` を使うことができます: ```Python item: Item = Body(..., embed=True) ``` 以下において: ```Python hl_lines="17" {!../../docs_src/body_multiple_params/tutorial005.py!} ``` この場合、**FastAPI** は以下のようなボディを期待します:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 5.8K bytes - Viewed (0) -
docs/hotfixes.md
### Building a hotfix binary and container To add a hotfix tag to the binary version and embed the relevant `commit-id` following build helpers are available #### Builds the hotfix binary and uploads to https;//dl.min.io ``` λ CRED_DIR=/media/builder/minio make hotfix-push ```
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Feb 14 21:36:02 UTC 2024 - 5K bytes - Viewed (0)