Validated Clojure SWE-rebench V2 task.
harbor run -t withmartian/plumatic___schema-443
harbor download withmartian/plumatic___schema-443
Defschema doesn't accept java.util.regex.Pattern even though it's a valid schema A regular expression is a valid schema:
(def two-char #"^..$") (schema/check two-char "hi") ; => nil (schema/check two-char "h") ; => (not (re-find #"^..$" "h"))
But it is not accepted by defschema:
defschema
(defschema two-char #"^..$") ; Throws: ; 1. Caused by java.lang.ClassCastException ; java.util.regex.Pattern cannot be cast to clojure.lang.IObj