Skip to content

Commit

Permalink
Added default values to SimpleSubmissionDTO fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Sep 3, 2024
1 parent b135cf1 commit a0d35d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/domain/data/simple_submission_dto.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@


class SimpleSubmissionDTO(BaseModel):
timestamp: Optional[datetime] = Field(alias="timestamp")
score: Optional[float] = Field(alias="score")
timestamp: Optional[datetime] = Field(alias="timestamp", default=None)
score: Optional[float] = Field(alias="score", default=0)

class Config:
require_by_default = False

0 comments on commit a0d35d2

Please sign in to comment.