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

List not validated for type array #7

Closed
cburgmer opened this issue Mar 20, 2021 · 1 comment
Closed

List not validated for type array #7

cburgmer opened this issue Mar 20, 2021 · 1 comment

Comments

@cburgmer
Copy link

I have this schema:

{:$schema "http://json-schema.org/draft-04/schema"
 :type "array"}

Running the following will not validate if the input is a list:

(schema/validate my-schema my-input)

The work-around for now seems to be

(schema/validate my-schema (apply vector my-input))
@luposlip
Copy link
Owner

Sorry for the late reply. I'll take a look at it soon'ish!

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

No branches or pull requests

2 participants