I’m using compojure-api and I’m wondering if there’s a way to specify (and coerce) a multipart POST that contains both a file and some JSON, presumably in different multipart params.
Trying the obvious thing :multipart-params [file :- TempFileUpload metadata :- {s/Keyword s/Any}]
fails claiming that metadata
isn’t a map, which I guess is obvious since it’s serialized JSON but I’m not sure how to get the result I want.