Commit 8dc70b2
committed
Reject list-of-non-strings at boundary instead of silently passing through
Live stress test found that `parameter_code=[60, 65]` (ints) was silently
passed to the OGC API, surfacing as a confusing JSONDecodeError when the
server returned an error page. The "list-of-non-str pass-through" clause
in `_get_args` was a defensive shortcut intended for `bbox`/`boundingBox`
(which are `list[float]`), but those params are already covered by
`_NO_NORMALIZE_PARAMS`, making the clause redundant AND bug-silencing.
Now `_normalize_str_iterable` runs for every non-listed list-shaped
param, raising TypeError with the offending element type — same path
that already handles `monitoring_location_id=[..., 12345]`.1 parent 07ed123 commit 8dc70b2
2 files changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | | - | |
1349 | 1348 | | |
1350 | 1349 | | |
1351 | 1350 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
0 commit comments