Skip to content

Commit

Permalink
fix: update schema to edit only required fields (#1223)
Browse files Browse the repository at this point in the history
Co-authored-by: sujanadh <sujanadh07@gmail.com>
  • Loading branch information
Sujanadh and sujanadh authored Feb 16, 2024
1 parent cbbaf03 commit 331bbd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/app/projects/project_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,13 @@ class ProjectUpload(ProjectIn, ODKCentralIn):
pass


class ProjectUpdate(ProjectIn):
class ProjectUpdate(BaseModel):
"""Update project."""

name: Optional[str] = None
short_description: Optional[str] = None
description: Optional[str] = None
changeset_comment: Optional[str] = None


class GeojsonFeature(BaseModel):
Expand Down

0 comments on commit 331bbd6

Please sign in to comment.