Fixed typo in documentation

This commit is contained in:
Dauletkhan Assanov 2024-05-06 09:59:22 +05:00
parent 383ef95248
commit 63d6124a38
5 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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