From 3ec43422826339347404cddf371f9ff68973d57b Mon Sep 17 00:00:00 2001 From: Ben Williams Date: Sat, 13 Jul 2019 00:22:21 +0100 Subject: [PATCH] :memo: Change limit default parameter to 10 in Query docs (#366) Rest of docs reference 10 as the default. --- docs/src/query_params/tutorial001.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/query_params/tutorial001.py b/docs/src/query_params/tutorial001.py index 2aa61ebfb..74e1a1760 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]