returnErr(StorageError::ConstraintViolation(format!("{} of {} cannot have multiple values",prop,obj_model).into()));
returnErr(StorageError::ConstraintViolation(format!("{} of {} cannot have multiple values",prop,self.describe_id(parent_model_id)).into()));
}
forval_instanceinvalues{
values_to_insert.push(data::Value{
@ -213,7 +225,7 @@ impl InMemoryStorage {
value: def.clone(),
});
}else{
returnErr(StorageError::ConstraintViolation(format!("{} is required for {} (and no default value is defined)",prop,obj_model).into()));
returnErr(StorageError::ConstraintViolation(format!("{} is required for {} and no default value is defined",prop,self.describe_id(parent_model_id)).into()));
returnErr(StorageError::ConstraintViolation(format!("{} of {} requires object of type {}, got {}",relation_model,obj_model,relation_model.related_tpl_id,related.model_id).into()));
returnErr(StorageError::ConstraintViolation(
format!("{} of {} requires object of type {}, got {}",