mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 18:15:37 +01:00
Fixed project creation endpoint
This commit is contained in:
parent
7b011fd887
commit
a40296929a
2 changed files with 8 additions and 13 deletions
|
|
@ -16,10 +16,11 @@ class ProjectFull(ProjectBase):
|
|||
id: int
|
||||
|
||||
class ProjectCreate(BaseModel):
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
name: str
|
||||
description: Optional[str] = None
|
||||
tasks: List[TaskBase] = []
|
||||
user_ids: List[int] = []
|
||||
|
||||
class ProjectUpdate(BaseModel):
|
||||
name: Optional[str] = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue