Browse Source
📝 Update `docs/tutorial/dependencies/classes-as-dependencies`: Add type of query parameters in a description of `Classes as dependencies` (#4015)
pull/4134/head
weekwith.me
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
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: |
|
|
In both cases, it will have: |
|
|
|
|
|
|
|
|
* an optional `q` query parameter. |
|
|
* An optional `q` query parameter that is a `str`. |
|
|
* a `skip` query parameter, with a default of `0`. |
|
|
* A `skip` query parameter that is an `int`, with a default of `0`. |
|
|
* a `limit` query parameter, with a default of `100`. |
|
|
* 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. |
|
|
In both cases the data will be converted, validated, documented on the OpenAPI schema, etc. |
|
|
|
|
|
|
|
|