schema validator to output more meaningful messages