add input validation + documentation docstring

patch bump
This commit is contained in:
2026-04-05 22:12:52 +01:00
parent 0d6d91c20a
commit 64a27913c2
5 changed files with 44 additions and 44 deletions

View File

@@ -2,12 +2,12 @@
from typing import Optional
from pydantic import BaseModel
from pydantic import BaseModel, Field
class BusParams(BaseModel):
"""Parameters for a single bus."""
gain: Optional[float] = None
mute: Optional[bool] = None
mono: Optional[int] = None
gain: Optional[float] = Field(None, ge=-60.0, le=12.0, description='Gain value for the bus')
mute: Optional[bool] = Field(None, description='Mute status for the bus')
mono: Optional[int] = Field(None, description='Mono status for the bus')