URL query strings: add validation
URL query strings: add validation: a task in smol-software-harbor (Harbor dataset). Passing a plain object as a value ( buildQuery({filter: {a: 1}}) ) silently produces filter=%5Bobject%20Object%5D . Make buildQuery() in src/query.js throw a TypeError with the message unsupported value for key…
The task
Passing a plain object as a value (`buildQuery({filter: {a: 1}})`) silently produces `filter=%5Bobject%20Object%5D`. Make `buildQuery()` in `src/query.js` throw a `TypeError` with the message `unsupported value for key: filter` (the key name) when a value, or an element of an array value, is a non-null object. Run…
Part of efederici/smol-software-harbor.