This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-05
Channels
- # announcements (2)
- # babashka (23)
- # beginners (67)
- # biff (4)
- # calva (19)
- # cider (6)
- # clj-kondo (40)
- # clj-yaml (14)
- # clojure (3)
- # clojure-austin (13)
- # clojure-europe (18)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-uk (5)
- # clojurescript (42)
- # datascript (2)
- # datomic (6)
- # emacs (32)
- # graalvm (8)
- # humbleui (12)
- # hyperfiddle (13)
- # jobs (5)
- # lambdaisland (1)
- # lsp (18)
- # malli (15)
- # off-topic (20)
- # overtone (1)
- # pathom (5)
- # pedestal (15)
- # portal (3)
- # reitit (13)
- # releases (1)
- # remote-jobs (1)
- # yamlscript (4)
Have you considered including :path-params in :params?
I haven't. The current behavior of merging query and form params is done by one of the middleware biff includes IIRC--muuntaja I think? It would probably be worth thinking about whether even that is a good thing--e.g. should people explicitly destructure query-params
+ form-params
+ path-params
separately? or merge them all into one? I guess it wouldn't hurt probably to have params
be the combination of everything and then people can decide whether to use it or not.
in short: I haven't thought about it at all up until now, but I'm open to it. I'd just want to spend a little hammock time before merging it into Biff.
Muuntaja just handles the body-params, so something else. Reitit coercion middleware push the coerced parameters under :parameters
with submaps for :query
, :path
, :header
, :body
etc. If you are interested in using those, I could pair up to integrate those in.
Thanks, good to know! I'll take a look at that sometime