from pydantic import BaseModel from typing import Dict class GameSettingsSchema(BaseModel): """Schema for game configuration settings.""" points_by_difficulty: Dict[str, int] times_by_difficulty: Dict[str, int] steal_penalty_percent: int max_players_per_team: int steal_time_percent: int class Config: json_schema_extra = { "example": { "points_by_difficulty": {"1": 100, "2": 200, "3": 300, "4": 400, "5": 500}, "times_by_difficulty": {"1": 15, "2": 20, "3": 25, "4": 35, "5": 45}, "steal_penalty_percent": 50, "max_players_per_team": 4, "steal_time_percent": 50 } }