Fork me on GitHub
#ring-swagger
<
2017-10-13
>
psalaberria00212:10:17

In case someone faces the same issue I had about strict coercion, switching to spec did the trick.

psalaberria00212:10:58

not what I was looking after, but it works

bmabey17:10:51

@ikitommi How are you suppose to use s/or or s/coll-of with spec-tools/compojure-api? For example, I have a route that I want to return (s/or :b ::bar :f ::foo). Using s/or doesn't seem to work with compojure-api though, only one is allowed. e.g. https://gist.github.com/bmabey/ea68b00e48f914ad3a0d4aa31c01e196

bmabey17:10:40

I'm pretty sure this is a bug so I've opened up an issue: https://github.com/metosin/compojure-api/issues/344

ikitommi06:10:02

s/or is problem form swagger aa it doesn't support anyOf. But coercion should work, commented on the issue. Hmm.