JOJ3-config-generator/joj3_config_generator/models/repo.py
李衍志523370910113 c67dd32cf2
Some checks failed
build / build (push) Failing after 2m12s
build / build (pull_request) Failing after 2m10s
fix: healthcheck & update teapot poststage
2025-02-06 09:16:11 +01:00

23 lines
403 B
Python

from typing import List
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):
max_size: float = Field(..., ge=0)
files: Files
sandbox_token: str
max_total_score: int = Field(100)
groups: Group