validate schema [undefined]
Merge pull request #2388 from fredericosilva/patch-1

validate schema arrays when accidentally undefined