pub fn validate(key: &str, value: &str) -> Result<(), String>
Validate a config key and value combination.
Returns an error string if the key is unknown or the value is invalid.