Fork me on GitHub
#reitit
<
2020-02-25
>
markbastian14:02:03

Ah, this makes sense. When I x-www-form-urlencode a one item collection I can't distinguish it from a scalar:

(=
  "ids=1"
  (slurp (:body (mock/request :post "/api/foo" {:ids 1})))
  (slurp (:body (mock/request :post "/api/foo" {:ids [1]}))))
Thanks for the tip on the working spec.

👍 4