jinx icon indicating copy to clipboard operation
jinx copied to clipboard

Empty array validation throws with "uniqueItems": true

Open john-shaffer opened this issue 3 years ago • 0 comments

Expected:

(jinx/validate (jinx/schema {"type" "array" "uniqueItems" true}) [])
;= {:instance [], :annotations {}, :type "array", :valid? true}

Actual:

(jinx/validate (jinx/schema {"type" "array" "uniqueItems" true}) [])
Execution error (ArityException) at juxt.jinx.alpha.validate/eval171079$fn (REPL:332).
Wrong number of args (0) passed to: clojure.core/distinct?

john-shaffer avatar Feb 09 '22 23:02 john-shaffer