Browse Source

✏️ Update fastapi/.agents/skills/fastapi/SKILL.md

Co-authored-by: Alejandra <[email protected]>
pull/14982/head
Sebastián Ramírez 5 months ago
committed by GitHub
parent
commit
8a9c5578c8
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      fastapi/.agents/skills/fastapi/SKILL.md

2
fastapi/.agents/skills/fastapi/SKILL.md

@ -203,7 +203,7 @@ The return type doesn't have to be a Pydantic model, it could be a different typ
### When to use `response_model` instead
If the return type is not the same as the type that you want to use to validate, filter, serialize, use the `response_model` parameter on the decorator instead.
If the return type is not the same as the type that you want to use to validate, filter, or serialize, use the `response_model` parameter on the decorator instead.
```python
from typing import Any

Loading…
Cancel
Save