Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shri committed Aug 8, 2024
1 parent 630c32d commit b037e6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/domain/jobs/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

class JobPost(CamelizedBaseStruct):
"""A job post."""

id: UUID
title: str
body: str | None = None
Expand All @@ -22,12 +23,12 @@ class JobPost(CamelizedBaseStruct):
apply_url: str | None = None
total_applicants: int | None = None
external_id: str | None = None
comapny_id: str | None = None
company: Company | None = None


class JobPostCreate(CamelizedBaseStruct):
"""A job post create schema."""

title: str
body: str | None = None
location: Location | None = None
Expand All @@ -43,6 +44,7 @@ class JobPostCreate(CamelizedBaseStruct):

class JobPostUpdate(CamelizedBaseStruct, omit_defaults=True):
"""A job post update schema."""

id: UUID
title: str | None | msgspec.UnsetType = msgspec.UNSET
body: str | None | msgspec.UnsetType = msgspec.UNSET
Expand Down

0 comments on commit b037e6d

Please sign in to comment.