From: Maciej Marzęta <94maciekm@gmail.com> Date: Tue, 4 Feb 2020 04:04:32 +0000 (+0100) Subject: :pencil2: Fix typos (#920) X-Git-Tag: 0.48.0~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6da96fbb77595aa7227af3ab5e55dc445ba84ad;p=thirdparty%2Ffastapi%2Ffastapi.git :pencil2: Fix typos (#920) --- diff --git a/README.md b/README.md index 69bd6a3385..9f9c440978 100644 --- a/README.md +++ b/README.md @@ -319,7 +319,7 @@ Coming back to the previous code example, **FastAPI** will: * Without the `None` it would be required (as is the body in the case with `PUT`). * For `PUT` requests to `/items/{item_id}`, Read the body as JSON: * Check that it has a required attribute `name` that should be a `str`. - * Check that is has a required attribute `price` that has to be a `float`. + * Check that it has a required attribute `price` that has to be a `float`. * Check that it has an optional attribute `is_offer`, that should be a `bool`, if present. * All this would also work for deeply nested JSON objects. * Convert from and to JSON automatically. diff --git a/docs/index.md b/docs/index.md index 69bd6a3385..9f9c440978 100644 --- a/docs/index.md +++ b/docs/index.md @@ -319,7 +319,7 @@ Coming back to the previous code example, **FastAPI** will: * Without the `None` it would be required (as is the body in the case with `PUT`). * For `PUT` requests to `/items/{item_id}`, Read the body as JSON: * Check that it has a required attribute `name` that should be a `str`. - * Check that is has a required attribute `price` that has to be a `float`. + * Check that it has a required attribute `price` that has to be a `float`. * Check that it has an optional attribute `is_offer`, that should be a `bool`, if present. * All this would also work for deeply nested JSON objects. * Convert from and to JSON automatically.