                                                   :id 1
                                                   :source-path 2
                                                   }]))
+
+;; *** detect missing-keys 
 
 (defn missing-keys [error]
   (when (and (sequential? (:pred error))

       (map add-required-keys)
       (map add-error-type)))

;; Sometimes there are multiple errors on the same path location

(defn combined-or-pred [errors]

      fixed-errs)
    errors))

(defn prepare-errors [explain-data validated-data]
  (->> explain-data
       ::s/problems
       filter-errors
       (map #(assoc % ::root-data validated-data))
       sort-errors
       combined-or-pred
       corrections-overide-missing-required))

#_(->> terrors
      ::s/problems
