mirror of https://github.com/tiangolo/fastapi.git
🌐 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:
parent
e99a15db76
commit
08c0376582
|
|
@ -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` 型も宣言できます。これは以下の様に変換されます:
|
||||
|
|
|
|||
Loading…
Reference in New Issue