Fork me on GitHub
#ring-swagger
<
2017-07-05
>
kanwei22:07:58

trying to use the new spec backend (great job btw!) and having problems:

kanwei22:07:52

I have this:

(s/def ::webhook
  (s/keys :req-un [::360matchpro_public_key
                   ::url]))

kanwei22:07:23

I want to set that as the :body-params

kanwei22:07:36

but this doesn't work: :body-params [webhook :- ::webhook]

kanwei22:07:32

:body-params seems to assume that all the members are key/vals, which makes sense, but how do you use an existing (s/keys) instead?