mirror of
https://github.com/metosin/reitit.git
synced 2025-12-23 10:41:10 +00:00
Properly access ::s/problems key in coercion-spec
This commit is contained in:
parent
542e11bd95
commit
a9cacd78ce
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@
|
|||
(into-spec model name))
|
||||
(-open-model [_ spec] spec)
|
||||
(-encode-error [_ error]
|
||||
(let [problems (::s/problems error)]
|
||||
(let [problems (-> error :problems ::s/problems)]
|
||||
(-> error
|
||||
(update :spec (comp str s/form))
|
||||
(assoc :problems (mapv #(update % :pred stringify-pred) problems)))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue