From 63d6124a387486de5b3a46b4d2f283bbacaa4256 Mon Sep 17 00:00:00 2001 From: Dauletkhan Assanov Date: Mon, 6 May 2024 09:59:22 +0500 Subject: [PATCH] Fixed typo in documentation --- docs_src/body_fields/tutorial001.py | 2 +- docs_src/body_fields/tutorial001_an.py | 2 +- docs_src/body_fields/tutorial001_an_py310.py | 2 +- docs_src/body_fields/tutorial001_an_py39.py | 2 +- docs_src/body_fields/tutorial001_py310.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs_src/body_fields/tutorial001.py b/docs_src/body_fields/tutorial001.py index cbeebd614a..1c7ad5547d 100644 --- a/docs_src/body_fields/tutorial001.py +++ b/docs_src/body_fields/tutorial001.py @@ -9,7 +9,7 @@ app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = Field( - default=None, title="The description of the item", max_length=300 + default=None, title="The title of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: Union[float, None] = None diff --git a/docs_src/body_fields/tutorial001_an.py b/docs_src/body_fields/tutorial001_an.py index 15ea1b53dc..05f586c4b3 100644 --- a/docs_src/body_fields/tutorial001_an.py +++ b/docs_src/body_fields/tutorial001_an.py @@ -10,7 +10,7 @@ app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = Field( - default=None, title="The description of the item", max_length=300 + default=None, title="The title of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: Union[float, None] = None diff --git a/docs_src/body_fields/tutorial001_an_py310.py b/docs_src/body_fields/tutorial001_an_py310.py index c9d99e1c2b..0e85de3b39 100644 --- a/docs_src/body_fields/tutorial001_an_py310.py +++ b/docs_src/body_fields/tutorial001_an_py310.py @@ -9,7 +9,7 @@ app = FastAPI() class Item(BaseModel): name: str description: str | None = Field( - default=None, title="The description of the item", max_length=300 + default=None, title="The title of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: float | None = None diff --git a/docs_src/body_fields/tutorial001_an_py39.py b/docs_src/body_fields/tutorial001_an_py39.py index 6ef14470cd..560782c3a2 100644 --- a/docs_src/body_fields/tutorial001_an_py39.py +++ b/docs_src/body_fields/tutorial001_an_py39.py @@ -9,7 +9,7 @@ app = FastAPI() class Item(BaseModel): name: str description: Union[str, None] = Field( - default=None, title="The description of the item", max_length=300 + default=None, title="The title of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: Union[float, None] = None diff --git a/docs_src/body_fields/tutorial001_py310.py b/docs_src/body_fields/tutorial001_py310.py index 4437327f3b..1c76921723 100644 --- a/docs_src/body_fields/tutorial001_py310.py +++ b/docs_src/body_fields/tutorial001_py310.py @@ -7,7 +7,7 @@ app = FastAPI() class Item(BaseModel): name: str description: str | None = Field( - default=None, title="The description of the item", max_length=300 + default=None, title="The title of the item", max_length=300 ) price: float = Field(gt=0, description="The price must be greater than zero") tax: float | None = None