Fork me on GitHub
#ring-swagger
<
2016-02-25
>
preoctopus19:02:02

How do you mark a :query-path as optional?

preoctopus19:02:53

:query-param*

juhoteperi19:02:44

@preoctopus: :query-params uses Plumbing destructuring syntax: https://github.com/plumatic/plumbing/tree/master/src/plumbing/fnk#our-fnk-syntax-proposal (check "Optional keys with defaults are given as maps")

juhoteperi19:02:54

And with types e.g. :query-params [{id :- s/Str nil}]

preoctopus19:02:58

{q :- s/Str nil}