From: weekwith.me <63915557+0417taehyun@users.noreply.github.com> Date: Tue, 26 Oct 2021 18:53:40 +0000 (+0900) Subject: 📝 Update `docs/tutorial/dependencies/classes-as-dependencies`: Add type of query... X-Git-Tag: 0.70.1~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a61a6c8656da738ee6438c1fa927e3cbad64bdd;p=thirdparty%2Ffastapi%2Ffastapi.git 📝 Update `docs/tutorial/dependencies/classes-as-dependencies`: Add type of query parameters in a description of `Classes as dependencies` (#4015) --- diff --git a/docs/en/docs/tutorial/dependencies/classes-as-dependencies.md b/docs/en/docs/tutorial/dependencies/classes-as-dependencies.md index 8c00374bf9..7747e3e1b4 100644 --- a/docs/en/docs/tutorial/dependencies/classes-as-dependencies.md +++ b/docs/en/docs/tutorial/dependencies/classes-as-dependencies.md @@ -91,9 +91,9 @@ Those parameters are what **FastAPI** will use to "solve" the dependency. In both cases, it will have: -* an optional `q` query parameter. -* a `skip` query parameter, with a default of `0`. -* a `limit` query parameter, with a default of `100`. +* An optional `q` query parameter that is a `str`. +* A `skip` query parameter that is an `int`, with a default of `0`. +* A `limit` query parameter that is an `int`, with a default of `100`. In both cases the data will be converted, validated, documented on the OpenAPI schema, etc.