mirror of
https://github.com/onyx-and-iris/vmr-http.git
synced 2026-04-18 15:43:30 +00:00
add input validation + documentation docstring
patch bump
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user