5 lines
320 B
Python

class GameSchema(BaseModel):
id: int = Field(None, description="The ID of the game")
name: str = Field(..., description="The name of the game")
description: str = Field(..., description="The description of the game")
is_multiplayer: bool = Field(..., description="Whether the game is multiplayer or not")