mirror of
https://github.com/RYDE-WORK/full-stack-fastapi-template.git
synced 2026-01-30 02:33:48 +08:00
♻️ Remove duplicated information in the ItemCreate model (#1287)
This commit is contained in:
parent
572f513458
commit
974340c8ff
@ -64,7 +64,7 @@ class ItemBase(SQLModel):
|
|||||||
|
|
||||||
# Properties to receive on item creation
|
# Properties to receive on item creation
|
||||||
class ItemCreate(ItemBase):
|
class ItemCreate(ItemBase):
|
||||||
title: str = Field(min_length=1, max_length=255)
|
pass
|
||||||
|
|
||||||
|
|
||||||
# Properties to receive on item update
|
# Properties to receive on item update
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user