added puck events

This commit is contained in:
GotthardG
2024-12-11 13:57:23 +01:00
parent 66a0ce3281
commit 958c9167fc
3 changed files with 67 additions and 16 deletions

View File

@ -306,4 +306,14 @@ class SlotSchema(BaseModel):
local_contact: Optional[str]
class Config:
from_attributes = True
from_attributes = True
class PuckEventCreate(BaseModel):
event_type: str
class SetTellPosition(BaseModel):
tell_position: str = Field(
...,
pattern="^[A-F][1-5]$|^null$|^None$", # Use 'pattern' instead of 'regex'
description="Valid values are A1-A5, B1-B5, ..., F1-F5, or null."
)