throw error on invalid schema
2.0.0