From: Christoph Deil Date: Wed, 8 Jan 2020 21:34:14 +0000 (+0100) Subject: :memo: Highlight all new lines in docs example upgrade (#795) X-Git-Tag: 0.46.0~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cad6a6e0c1ffa9bb1720f4fb4a627da94f463c98;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Highlight all new lines in docs example upgrade (#795) --- diff --git a/README.md b/README.md index 702cbdef7b..4f73c0f714 100644 --- a/README.md +++ b/README.md @@ -206,8 +206,7 @@ Now modify the file `main.py` to receive a body from a `PUT` request. Declare the body using standard Python types, thanks to Pydantic. - -```Python hl_lines="2 7 8 9 10 24" +```Python hl_lines="2 7 8 9 10 23 24 25" from fastapi import FastAPI from pydantic import BaseModel diff --git a/docs/index.md b/docs/index.md index 702cbdef7b..4f73c0f714 100644 --- a/docs/index.md +++ b/docs/index.md @@ -206,8 +206,7 @@ Now modify the file `main.py` to receive a body from a `PUT` request. Declare the body using standard Python types, thanks to Pydantic. - -```Python hl_lines="2 7 8 9 10 24" +```Python hl_lines="2 7 8 9 10 23 24 25" from fastapi import FastAPI from pydantic import BaseModel