mirror of https://github.com/tiangolo/fastapi.git
📝 Add screenshot to body-schema tutorial
This commit is contained in:
parent
0d1b97fb94
commit
dfa067b061
Binary file not shown.
|
After Width: | Height: | Size: 77 KiB |
|
|
@ -48,6 +48,10 @@ For example, you can use that functionality to pass a <a href="http://json-schem
|
|||
{!./src/body_schema/tutorial002.py!}
|
||||
```
|
||||
|
||||
And it would look in the `/docs` like this:
|
||||
|
||||
<img src="/img/tutorial/body-schema/image01.png">
|
||||
|
||||
## Recap
|
||||
|
||||
You can use Pydantic's `Schema` to declare extra validations and metadata for model attributes.
|
||||
|
|
|
|||
Loading…
Reference in New Issue