Hi all, I have this snippet for a file upload and all is working:
:parameters {:multipart [:map [:file reitit.ring.malli/temp-file-part]]}
But I could not figure out how to "document" the parameter" file", so that a "description" of it appears in the swagger-ui:["/plus"
{:post
{:parameters
{:body [:map
[:x
{:title "X parameter"
:description "Description for X parameter"
:json-schema/default 42}
int?]
[:y int?]]}}}]
So maybe pass a map as such?
:parameters {:multipart [:map [:file {:description "<description>"} reitit.ring.malli/temp-file-part]]}Yes, I think correct answer is to attach the description property to the map schema key properties