Browse Source

📝 Add tip about using alias for form data fields (#5329)

pull/5330/head
Sebastián Ramírez 3 years ago
committed by GitHub
parent
commit
adf4e77dd6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/en/docs/tutorial/request-forms.md

2
docs/en/docs/tutorial/request-forms.md

@ -27,7 +27,7 @@ For example, in one of the ways the OAuth2 specification can be used (called "pa
The <abbr title="specification">spec</abbr> requires the fields to be exactly named `username` and `password`, and to be sent as form fields, not JSON.
With `Form` you can declare the same metadata and validation as with `Body` (and `Query`, `Path`, `Cookie`).
With `Form` you can declare the same configurations as with `Body` (and `Query`, `Path`, `Cookie`), including validation, examples, an alias (e.g. `user-name` instead of `username`), etc.
!!! info
`Form` is a class that inherits directly from `Body`.

Loading…
Cancel
Save