alexanderkiel / phrase

Clojure(Script) library for phrasing spec problems.
Eclipse Public License 1.0
289 stars 8 forks source link

Please define phrase-all like so: #34

Open johanatan opened 4 years ago

johanatan commented 4 years ago
(defn phrase-all [context spec val]
  (some->> (s/explain-data spec val)
           ::s/problems
           (mapv (partial phrase.alpha/phrase context))))
johanatan commented 4 years ago

It returns a vector of all of the problems which can be further processed by the caller.