]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Fix default response model docs (#288)
authorAndrew Widdersheim <amwiddersheim@gmail.com>
Thu, 13 Jun 2019 16:31:48 +0000 (12:31 -0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Thu, 13 Jun 2019 16:31:48 +0000 (18:31 +0200)
Fix a discrepancy in the `tax` parameters default value between the docs
and the code example.

docs/tutorial/response-model.md

index 8b389f2360bcd52885e58ed55a19cdb7d4be3293..00c9b987c4a4ae89062e01ee0197b763a4ebf9f1 100644 (file)
@@ -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.