updated doc with better check.schema example