reitit/modules
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
..
reitit Release 0.9.1 2025-05-27 14:04:31 +03:00
reitit-core fix: match-by-name! should throw when match-by-name is PartialMatch 2025-10-24 09:58:03 +03:00
reitit-dev Release 0.9.1 2025-05-27 14:04:31 +03:00
reitit-frontend Release 0.9.1 2025-05-27 14:04:31 +03:00
reitit-http Release 0.9.1 2025-05-27 14:04:31 +03:00
reitit-interceptors Release 0.9.1 2025-05-27 14:04:31 +03:00
reitit-malli feat: reuse :default-values config key instead of adding a new one 2025-10-13 15:18:29 +03:00
reitit-middleware doc: multipart-middleware should be after coerce-request-middleware 2025-10-10 12:50:24 +03:00
reitit-openapi feat: better error reporting while building openapi docs 2025-10-09 15:19:56 +03:00
reitit-pedestal Release 0.9.1 2025-05-27 14:04:31 +03:00
reitit-ring Merge remote-tracking branch 'origin/master' into fix/top-level-mw-registry 2025-10-13 08:50:38 +03:00
reitit-schema Release 0.9.1 2025-05-27 14:04:31 +03:00
reitit-sieppari Release 0.9.1 2025-05-27 14:04:31 +03:00
reitit-spec Release 0.9.1 2025-05-27 14:04:31 +03:00
reitit-swagger Release 0.9.1 2025-05-27 14:04:31 +03:00
reitit-swagger-ui Release 0.9.1 2025-05-27 14:04:31 +03:00