JOJ3-config-generator/joj3_config_generator/models/repo.py
张泊明518370910136 51b68b7c87
Some checks failed
build / build (push) Failing after 1m38s
refactor: re-organize tests & models
2024-10-22 06:17:09 -04:00

19 lines
379 B
Python

from typing import List, Optional
from pydantic import BaseModel, Field
class Files(BaseModel):
whitelist_patterns: List[str]
whitelist_file: Optional[str]
required: List[str]
immutable: List[str]
class Config(BaseModel):
teaching_team: List[str]
max_size: float = Field(..., ge=0)
release_tags: List[str]
files: Files
sandbox_token: str