Generic schema validation.