Skip to content

Commit

Permalink
Update base schema to remove unneeded required fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouder committed Mar 14, 2024
1 parent 51657ec commit 23fdd3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/spacecraft/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
# Pydantic Models
class Spacecraft(BaseModel):
model_config = ConfigDict(from_attributes=True)
id: int
id: int | None = None
name: str
description: str | None = None
affiliation: str | None = None
dimensions: str | None = None
appearances: int
appearances: int = 1


class SpacecraftPayload(BaseModel):
Expand Down

0 comments on commit 23fdd3b

Please sign in to comment.