Force validation of path_hash_mode

This commit is contained in:
Jack Kingsman
2026-03-07 22:37:48 -08:00
parent 34318e4814
commit 075debc51b
2 changed files with 34 additions and 1 deletions
+4 -1
View File
@@ -43,7 +43,10 @@ class RadioConfigUpdate(BaseModel):
tx_power: int | None = Field(default=None, description="Transmit power in dBm")
radio: RadioSettings | None = None
path_hash_mode: int | None = Field(
default=None, description="Path hash mode (0=1-byte, 1=2-byte, 2=3-byte)"
default=None,
ge=0,
le=2,
description="Path hash mode (0=1-byte, 1=2-byte, 2=3-byte)",
)