chore: import MCTF services
- Added all seven issued service trees without omissions. - Preserved the supplied runtime configuration, binaries, and assets.
This commit is contained in:
commit
13f936bee9
1222 files changed
+21280
No files matched your search
Executable
+43
@@ -0,0 +1,43 @@
|
||||
from decimal import Decimal
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field
|
||||
|
||||
class ReadingIn(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid", allow_inf_nan=False)
|
||||
|
||||
serial: str = Field(min_length=1, max_length=128)
|
||||
kind: str = Field(min_length=1, max_length=16)
|
||||
metrics: dict[str, Decimal] = Field(min_length=4, max_length=4)
|
||||
|
||||
class CheckStart(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid")
|
||||
|
||||
reading_id: int = Field(gt=0)
|
||||
|
||||
class CheckCommit(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid")
|
||||
|
||||
round: int = Field(ge=1, le=10)
|
||||
values: list[str] = Field(min_length=3, max_length=3)
|
||||
|
||||
class CheckAnswer(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid")
|
||||
|
||||
round: int = Field(ge=1, le=10)
|
||||
data: dict = Field(min_length=2, max_length=2)
|
||||
|
||||
class ReceiptOpen(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid", str_strip_whitespace=True)
|
||||
|
||||
calculation_id: str = Field(min_length=44, max_length=44, pattern=r"^[A-Za-z0-9+/]{43}=$")
|
||||
|
||||
class ReportQueryIn(BaseModel):
|
||||
model_config = ConfigDict(extra="forbid")
|
||||
|
||||
report: str
|
||||
period: str
|
||||
fields: list[str] = []
|
||||
sort: str = ""
|
||||
group_by: str = ""
|
||||
filter: str = ""
|
||||
having: str = ""
|
||||
Reference in new issue
Block a user