mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-05 14:16:20 -04:00
📝 Fix default response model docs (#288)
Fix a discrepancy in the `tax` parameters default value between the docs and the code example.
This commit is contained in:
committed by
Sebastián Ramírez
parent
7244e4b612
commit
3f5521fdfb
@@ -93,7 +93,7 @@ Your response model could have default values, like:
|
||||
```
|
||||
|
||||
* `description: str = None` has a default of `None`.
|
||||
* `tax: float = None` has a default of `None`.
|
||||
* `tax: float = 10.5` has a default of `10.5`.
|
||||
* `tags: List[str] = []` has a default of an empty list: `[]`.
|
||||
|
||||
but you might want to omit them from the result if they were not actually stored.
|
||||
|
||||
Reference in New Issue
Block a user