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

Options are not passed through when validating an array #21

Closed
SpaceviewMob opened this issue Jan 6, 2016 · 1 comment
Closed

Options are not passed through when validating an array #21

SpaceviewMob opened this issue Jan 6, 2016 · 1 comment

Comments

@SpaceviewMob
Copy link

in ArraySchema, values.map is called without passing in the options object, thus _opts ends up being the index of the value on the array.

Ran into this by trying to run schema.validate([...data], { stripUnknown: true })

@jquense
Copy link
Owner

jquense commented Jan 7, 2016

oof sneaky. thanks for the heads up, feel like sending a PR?

@jquense jquense closed this as completed in 335eb18 Feb 1, 2016
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