]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
📝 Update `docs/tutorial/dependencies/classes-as-dependencies`: Add type of query...
authorweekwith.me <63915557+0417taehyun@users.noreply.github.com>
Tue, 26 Oct 2021 18:53:40 +0000 (03:53 +0900)
committerGitHub <noreply@github.com>
Tue, 26 Oct 2021 18:53:40 +0000 (18:53 +0000)
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

index 8c00374bf9409f208721f51dac2cfc4b0b300666..7747e3e1b454bd0e9d8b336db76bd3f5c7b0d81f 100644 (file)
@@ -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.