Fork me on GitHub
#ring-swagger
<
2016-06-24
>
leo.ribeiro03:06:04

hello guys… How can I define a list in my schema?

leo.ribeiro03:06:55

(s/defschema Batch {:Id String :Name String}) (GET "/list-open-batches" [] :return Batch :summary "List open batches in the system" (response/ok (db/list-open-batches!) )

leo.ribeiro03:06:08

it’s trying to retrieve a map… but it;s a list

leo.ribeiro03:06:58

:return [Batch]

leo.ribeiro03:06:59

nevermind 😛