Fork me on GitHub
#reitit
<
2022-08-23
>
cvetan22:08:57

hello guys, I am fairly new to clojure and reitit

cvetan22:08:07

I am writing some API with swagger for some colledge project

cvetan22:08:20

I was wondering how to define that endpoint returns list of strings?

cvetan22:08:36

something like you define variable of integer type with int?

cvetan22:08:49

is there something similar for example list of strings?

rolt10:08:58

it depends on the type of coercion you're using. If you use int? you're probably using spec coercion, so (s/coll-of string?) i'd really recommend malli though