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

Tuple length does not specify array length #1

Open
geraintluff opened this issue Jan 21, 2013 · 4 comments
Open

Tuple length does not specify array length #1

geraintluff opened this issue Jan 21, 2013 · 4 comments

Comments

@geraintluff
Copy link

Honestly, I haven't run it, but there's a line in your code that says:

 if(data.length < schema.items.length) {

That looks like it fails if the data array is shorter than the "items" array.

If so, that's not quite correct - tuple typing assigns schemas to particular data items if they exist. If you want a minimum length as well, you need to specify minItems.

@IreneKnapp
Copy link
Owner

Hmm, thank you for the feedback. I'll look at it sometime soon.

@FDiskas
Copy link

FDiskas commented Jan 12, 2018

soon? :D 🔜

@gennbo
Copy link

gennbo commented Jan 12, 2018

Internet never forgets :)

@IreneKnapp
Copy link
Owner

... are people using this library? If so, I can prioritize this. I admit, I'm surprised.

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

4 participants