From: Ben Williams Date: Fri, 12 Jul 2019 23:22:21 +0000 (+0100) Subject: :memo: Change limit default parameter to 10 in Query docs (#366) X-Git-Tag: 0.32.0~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ec43422826339347404cddf371f9ff68973d57b;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Change limit default parameter to 10 in Query docs (#366) Rest of docs reference 10 as the default. --- diff --git a/docs/src/query_params/tutorial001.py b/docs/src/query_params/tutorial001.py index 2aa61ebfbf..74e1a17604 100644 --- a/docs/src/query_params/tutorial001.py +++ b/docs/src/query_params/tutorial001.py @@ -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]