From 33d155dc84b1298870d7a78d6d2907c7b5e0dfe1 Mon Sep 17 00:00:00 2001 From: Ambrose Bonnaire-Sergeant Date: Thu, 18 Jul 2024 21:57:30 -0500 Subject: [PATCH] document repeated query param --- examples/frontend-malli/src/frontend/core.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/frontend-malli/src/frontend/core.cljs b/examples/frontend-malli/src/frontend/core.cljs index 1414d76fc..6708ef46b 100644 --- a/examples/frontend-malli/src/frontend/core.cljs +++ b/examples/frontend-malli/src/frontend/core.cljs @@ -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!