]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:twisted_rightwards_arrows: Merge PR #72
authorSebastián Ramírez <tiangolo@gmail.com>
Thu, 21 Mar 2019 14:46:02 +0000 (18:46 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Thu, 21 Mar 2019 14:46:02 +0000 (18:46 +0400)
docs/python-types.md
pending_tests/main.py

index e5ea654424abef42537572bd3a5b30e09404cec1..acaf1303e94d1e8a8408776a41b1a3cae66cd037 100644 (file)
@@ -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()`.
 * <abbr title="Puts them together, as one. With the contents of one after the other.">Concatenates</abbr> them with a space in the middle.
 
index 8af86f693b21ec4f61c425edbbe829da57a881b6..cb464cb312d2862e63022e5a62adf7698943dfad 100644 (file)
@@ -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