reitit/test
Joel Kaasinen d2f44b8015 fix: match-by-name! should throw when match-by-name is PartialMatch
If a path param was nil, match-by-name (via impl/path-for) was
treating the parameter as missing, but match-by-name!
(via impl/throw-on-missing-path-params) was treating it as present.

That is:

(reitit/match-by-name router :page {:id "1"}) ;; => Match
(reitit/match-by-name router :page) ;; => PartialMatch
(reitit/match-by-name router :page {:id nil}) ;; => PartialMatch

(reitit/match-by-name! router :page {:id "1"}) ;; => Match
(reitit/match-by-name! router :page) ;; => ExceptionInfo: missing path-params for route /pages/:id -> #{:id}
(reitit/match-by-name! router :page {:id nil}) ;; => nil  !!!

fixes #758
2025-10-24 09:58:03 +03:00
..
clj Change default index-redirect? value to false 2025-03-28 15:14:15 +02:00
cljc/reitit fix: match-by-name! should throw when match-by-name is PartialMatch 2025-10-24 09:58:03 +03:00
cljs/reitit Use defined :string :default transformer for query-string-coercer 2025-01-31 09:39:19 +02:00