Skip to content
Snippets Groups Projects
Commit b59bb642 authored by Cam Saul's avatar Cam Saul
Browse files

Add (s/set-fn-validation! true)

parent 3c57e90f
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,10 @@
[metabase.util.password :as password]
[schema.core :as s]))
;; always validate all schemas in s/defn function declarations. See
;; https://github.com/plumatic/schema#schemas-in-practice for details.
(s/set-fn-validation! true)
(defn with-api-error-message
"Return SCHEMA with an additional API-ERROR-MESSAGE that will be used to explain the error if a parameter fails
validation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment