fn validate_optional_i32_where( tool: &str, field: &str, value: Option<i32>, expected: &str, is_valid: impl Fn(i32) -> bool, ) -> Result<(), String>