Skip to content

Commit

Permalink
document repeated query param
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Jul 19, 2024
1 parent 5589328 commit 33d155d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/frontend-malli/src/frontend/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@
:parameters {:path [:map
[:id :int]]
:query [:map
[:foo {:optional true} :keyword]]}}]])
[:foo {:optional true} :keyword]
;; ?repeated=a ==> ["a"]
;; ?repeated=a&repeated=b ==> ["a" "b"]
[:repeated [:vector {:decode/string #(if (string? %) [%] %)} :string]]]}}]])

(defn init! []
(rfe/start!
Expand Down

0 comments on commit 33d155d

Please sign in to comment.