refactor(jobs): switch bad response handling to use fastapi.HTTPException

This commit is contained in:
Cullen Watson
2023-07-09 07:37:18 -05:00
parent 9ef41979fd
commit dd0047a5bb
5 changed files with 36 additions and 51 deletions

View File

@@ -48,12 +48,12 @@ class Delivery(BaseModel):
class JobPost(BaseModel):
title: str
description: str = None
company_name: str
location: Location
description: str = None
job_type: JobType = None
compensation: Compensation = None
date_posted: datetime
date_posted: datetime = None
delivery: Delivery = None