JOJ3-config-generator/joj3_config_generator/models/repo.py

23 lines
469 B
Python

from typing import List, Optional
from pydantic import BaseModel, Field
class Files(BaseModel):
required: List[str]
immutable: List[str]
class Group(BaseModel):
name: List[str]
max_count: List[int]
time_period_hour: List[int]
class Config(BaseModel):
teaching_team: List[str]
max_size: float = Field(..., ge=0)
release_tags: List[str]
files: Files
sandbox_token: str
max_total_score: int = Field(100)
groups : Group