🌐 Update Japanese translation of `docs/ja/docs/tutorial/query-params.md` (#10808)

Co-authored-by: Alejandra <90076947+alejsdev@users.noreply.github.com>
This commit is contained in:
Takayoshi Urushio 2024-03-31 08:22:21 +09:00 committed by GitHub
parent e99a15db76
commit 08c0376582
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 5 deletions

View File

@ -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` 型も宣言できます。これは以下の様に変換されます: