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

Array of Raw types fails validation #4

Open
aamccaslin opened this issue Feb 7, 2018 · 0 comments
Open

Array of Raw types fails validation #4

aamccaslin opened this issue Feb 7, 2018 · 0 comments
Labels
Milestone

Comments

@aamccaslin
Copy link

Getting the 'Invalid type, expected array' error on the array when trying to make an array of Raws.

I think this is happening because the raw template doesn't include schema-validate so the normal tv4 validation isn't run. But the array is attempting to validate everything inside of it and doesn't know how to handle the nested data. (It seems to fail in validateType for the data - tv4 thinks the data is a string but the only allowed type is 'variant')

@aamccaslin aamccaslin added the asf label Feb 7, 2018
@aamccaslin aamccaslin added this to the backlog milestone Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant