fix RawFtmEntry validation error

This commit is contained in:
Laura Klünder 2024-03-31 00:33:50 +01:00
parent 3a257694f9
commit e5e52a1035

View file

@ -167,7 +167,7 @@ class RangeResultItem(BaseModel):
class RawFTMEntry(BaseModel):
dlog_token: Annotated[PositiveInt, Lt(255)]
rssi: Annotated[NegativeInt, Gt(-100)]
rtt: Annotated[PositiveInt, Lt(2**32)]
rtt: Annotated[NonNegativeInt, Lt(2**32)]
t1: Annotated[PositiveInt, Lt(2**64)]
t2: Annotated[PositiveInt, Lt(2**64)]
t3: Annotated[PositiveInt, Lt(2**64)]