mirror of https://github.com/tiangolo/fastapi.git
🌐 Fix highlight lines for Japanese translation for `docs/tutorial/query-params.md` (#2969)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com> Fix https://github.com/tiangolo/fastapi/issues/2966
This commit is contained in:
parent
41735d2de9
commit
0781a91d19
|
|
@ -64,7 +64,7 @@ http://127.0.0.1:8000/items/?skip=20
|
|||
|
||||
同様に、デフォルト値を `None` とすることで、オプショナルなクエリパラメータを宣言できます:
|
||||
|
||||
```Python hl_lines="7"
|
||||
```Python hl_lines="9"
|
||||
{!../../../docs_src/query_params/tutorial002.py!}
|
||||
```
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ http://127.0.0.1:8000/items/?skip=20
|
|||
|
||||
`bool` 型も宣言できます。これは以下の様に変換されます:
|
||||
|
||||
```Python hl_lines="7"
|
||||
```Python hl_lines="9"
|
||||
{!../../../docs_src/query_params/tutorial003.py!}
|
||||
```
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ http://127.0.0.1:8000/items/foo?short=yes
|
|||
|
||||
名前で判別されます:
|
||||
|
||||
```Python hl_lines="6 8"
|
||||
```Python hl_lines="8 10"
|
||||
{!../../../docs_src/query_params/tutorial004.py!}
|
||||
```
|
||||
|
||||
|
|
@ -184,7 +184,7 @@ http://127.0.0.1:8000/items/foo-item?needy=sooooneedy
|
|||
|
||||
そして当然、あるパラメータを必須に、別のパラメータにデフォルト値を設定し、また別のパラメータをオプショナルにできます:
|
||||
|
||||
```Python hl_lines="7"
|
||||
```Python hl_lines="10"
|
||||
{!../../../docs_src/query_params/tutorial006.py!}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue