Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty array validation throws with "uniqueItems": true #24

Open
john-shaffer opened this issue Feb 9, 2022 · 0 comments · May be fixed by #25
Open

Empty array validation throws with "uniqueItems": true #24

john-shaffer opened this issue Feb 9, 2022 · 0 comments · May be fixed by #25

Comments

@john-shaffer
Copy link

john-shaffer commented Feb 9, 2022

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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant