From: Andrew Widdersheim Date: Thu, 13 Jun 2019 16:31:48 +0000 (-0400) Subject: :memo: Fix default response model docs (#288) X-Git-Tag: 0.29.1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f5521fdfb59db1365736dd99221731e6c14341f;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Fix default response model docs (#288) Fix a discrepancy in the `tax` parameters default value between the docs and the code example. --- diff --git a/docs/tutorial/response-model.md b/docs/tutorial/response-model.md index 8b389f2360..00c9b987c4 100644 --- a/docs/tutorial/response-model.md +++ b/docs/tutorial/response-model.md @@ -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.