(parse spec content)

Source

(defn parse [spec content] (let [res (s/conform spec content)] (if (= :clojure.spec.alpha/invalid res) (throw (ex-info (expound/expound-str spec content) {})) res)))