From: Takayoshi Urushio Date: Sat, 30 Mar 2024 23:22:21 +0000 (+0900) Subject: 🌐 Update Japanese translation of `docs/ja/docs/tutorial/query-params.md` (#10808) X-Git-Tag: 0.110.1~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08c03765824928dc34ba2b72e7c35422f9c7bf69;p=thirdparty%2Ffastapi%2Ffastapi.git 🌐 Update Japanese translation of `docs/ja/docs/tutorial/query-params.md` (#10808) Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com> --- diff --git a/docs/ja/docs/tutorial/query-params.md b/docs/ja/docs/tutorial/query-params.md index 5202009ef8..957726b9f0 100644 --- a/docs/ja/docs/tutorial/query-params.md +++ b/docs/ja/docs/tutorial/query-params.md @@ -73,11 +73,6 @@ http://127.0.0.1:8000/items/?skip=20 !!! check "確認" パスパラメータ `item_id` はパスパラメータであり、`q` はそれとは違ってクエリパラメータであると判別できるほど**FastAPI** が賢いということにも注意してください。 -!!! note "備考" - FastAPIは、`= None`があるおかげで、`q`がオプショナルだとわかります。 - - `Optional[str]` の`Optional` はFastAPIでは使用されていません(FastAPIは`str`の部分のみ使用します)。しかし、`Optional[str]` はエディタがコードのエラーを見つけるのを助けてくれます。 - ## クエリパラメータの型変換 `bool` 型も宣言できます。これは以下の様に変換されます: