does anyone having ideas about how to allow vector/array for POST body requests using spec coercion:
(s/def ::body (s/coll-of string?))
(def routes
["/api"
["/engagements"
{:post {:parameters {:body ::photos}}}]])
right now there is some implicit spec which is forcing the body to be a map. any ways to override that?never mind, i need to specify spec as vector [::photos]
:thinking_face:
oh, that's because the spec-coercion accepts both normal specs and data-specs.
you can also say (s/coll-of ...)
with normal specs
that did not work on latest version