Skip to content

Commit

Permalink
馃摑Fixed typo in documentation - Body Fields page
Browse files Browse the repository at this point in the history
  • Loading branch information
Dauletkhan Assanov authored and Dauletkhan Assanov committed May 6, 2024
1 parent e04d397 commit 88a7f70
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs_src/body_fields/tutorial001.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion docs_src/body_fields/tutorial001_an.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion docs_src/body_fields/tutorial001_an_py310.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion docs_src/body_fields/tutorial001_an_py39.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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
Expand Down
2 changes: 1 addition & 1 deletion docs_src/body_fields/tutorial001_py310.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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
Expand Down

0 comments on commit 88a7f70

Please sign in to comment.