]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Change limit default parameter to 10 in Query docs (#366)
authorBen Williams <smashman2004@gmail.com>
Fri, 12 Jul 2019 23:22:21 +0000 (00:22 +0100)
committerSebastián Ramírez <tiangolo@gmail.com>
Fri, 12 Jul 2019 23:22:21 +0000 (18:22 -0500)
Rest of docs reference 10 as the default.

docs/src/query_params/tutorial001.py

index 2aa61ebfbf8d9790565c19a30741ab5affa8067a..74e1a176048537c8d18b6c258add514bd67bb6c1 100644 (file)
@@ -6,5 +6,5 @@ fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"
 
 
 @app.get("/items/")
-async def read_item(skip: int = 0, limit: int = 100):
+async def read_item(skip: int = 0, limit: int = 10):
     return fake_items_db[skip : skip + limit]