Skip to content
Snippets Groups Projects
Unverified Commit bdf67dbe authored by Alexander Solovyov's avatar Alexander Solovyov Committed by GitHub
Browse files

[openapi] do not die when :query-params is not a map (#44549)

parent 981d69ab
No related merge requests found
......@@ -117,8 +117,9 @@
(= :as x) (recur (nnext args)
(into params (when (map? y)
(let [qp (:query-params (set/map-invert y))]
;; {c :count :keys [a b}} ; => [count a b]
(flatten (vals qp))))))
(when (map? qp)
;; {c :count :keys [a b}} ; => [count a b]
(flatten (vals qp)))))))
(symbol? x) (recur (next args)
(conj params x)))))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment