Browse Source
📝 Update `docs_src/path_params_numeric_validations/tutorial006.py` (#11478)
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
pull/12085/head
Muhammad Ashiq Ameer
12 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
6 additions and
0 deletions
-
docs_src/path_params_numeric_validations/tutorial006.py
-
docs_src/path_params_numeric_validations/tutorial006_an.py
-
docs_src/path_params_numeric_validations/tutorial006_an_py39.py
|
@ -13,4 +13,6 @@ async def read_items( |
|
|
results = {"item_id": item_id} |
|
|
results = {"item_id": item_id} |
|
|
if q: |
|
|
if q: |
|
|
results.update({"q": q}) |
|
|
results.update({"q": q}) |
|
|
|
|
|
if size: |
|
|
|
|
|
results.update({"size": size}) |
|
|
return results |
|
|
return results |
|
|
|
@ -14,4 +14,6 @@ async def read_items( |
|
|
results = {"item_id": item_id} |
|
|
results = {"item_id": item_id} |
|
|
if q: |
|
|
if q: |
|
|
results.update({"q": q}) |
|
|
results.update({"q": q}) |
|
|
|
|
|
if size: |
|
|
|
|
|
results.update({"size": size}) |
|
|
return results |
|
|
return results |
|
|
|
@ -15,4 +15,6 @@ async def read_items( |
|
|
results = {"item_id": item_id} |
|
|
results = {"item_id": item_id} |
|
|
if q: |
|
|
if q: |
|
|
results.update({"q": q}) |
|
|
results.update({"q": q}) |
|
|
|
|
|
if size: |
|
|
|
|
|
results.update({"size": size}) |
|
|
return results |
|
|
return results |
|
|