metosin / reitit

A fast data-driven routing library for Clojure/Script

Home Page:https://cljdoc.org/d/metosin/reitit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to accept list of items in `:path` params

Invertisment opened this issue · comments

I try to accept a list of values in my path value like this:

:parameters {:path {:param1 [:vector :int]}}

Swagger interface actually allows me to input the IDs but the coercion mechanism fails because 0,1,2 is not a vector.
The coercion mechanism is only designed to accept single-value inputs.

Do you think this is a good thing to ask for? Maybe it shouldn't check the coercion on the URL?
What do you think?