Better handling of error messages in JSON schema.