Commit 371e8be
André Luiz Abdalla Silveira
fix(api): accept int or str for timestamps seconds
The timestamp parameters can be passed as either a numeric string or an
integer. Update the ListingInterval type annotation from Optional[str]
to Optional[str | int] so pydantic validates both correctly.
resolve_date_range already handles both via float() conversion.1 parent eb67460 commit 371e8be
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments