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
parent
commit
0a61a6c865
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

6
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.

Loading…
Cancel
Save