Browse Source

🎨 Auto format

pull/16023/head
pre-commit-ci-lite[bot] 3 days ago
committed by GitHub
parent
commit
7be32447e6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      docs/en/docs/tutorial/query-params.md

2
docs/en/docs/tutorial/query-params.md

@ -20,7 +20,7 @@ http://127.0.0.1:8000/items/?skip=0&limit=10
As they are part of the URL, they are "naturally" strings. As they are part of the URL, they are "naturally" strings.
But when you declare them with Python types (in the example above, as `int`), they are converted to that type and validated against it. But when you declare them with Python types (in the example above, as `int`), they are converted to that type and validated against it.
For example, if `skip` is declared as an `int`, sending a value that cannot be converted to an integer: For example, if `skip` is declared as an `int`, sending a value that cannot be converted to an integer:
``` ```
http://127.0.0.1:8000/items/?skip=abc http://127.0.0.1:8000/items/?skip=abc
``` ```

Loading…
Cancel
Save