From: Sebastián Ramírez Date: Thu, 21 Mar 2019 14:46:02 +0000 (+0400) Subject: :twisted_rightwards_arrows: Merge PR #72 X-Git-Tag: 0.9.0~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f7b7837fbd19014d2737632e4284fdf1fc73121;p=thirdparty%2Ffastapi%2Ffastapi.git :twisted_rightwards_arrows: Merge PR #72 --- diff --git a/docs/python-types.md b/docs/python-types.md index e5ea654424..acaf1303e9 100644 --- a/docs/python-types.md +++ b/docs/python-types.md @@ -29,7 +29,7 @@ John Doe The function does the following: -* Takes a `fist_name` and `last_name`. +* Takes a `first_name` and `last_name`. * Converts the first letter of each one to upper case with `title()`. * Concatenates them with a space in the middle. diff --git a/pending_tests/main.py b/pending_tests/main.py index 8af86f693b..cb464cb312 100644 --- a/pending_tests/main.py +++ b/pending_tests/main.py @@ -62,7 +62,7 @@ class FakeDB: "johndoe": { "username": "johndoe", "password": "shouldbehashed", - "fist_name": "John", + "first_name": "John", "last_name": "Doe", } } @@ -87,7 +87,7 @@ class TokenUserData(BaseModel): class UserInDB(BaseModel): username: str password: str - fist_name: str + first_name: str last_name: str @@ -109,7 +109,7 @@ def require_user( class UserOut(BaseModel): username: str - fist_name: str + first_name: str last_name: str