pub fn validate_priority(priority: &str) -> Result<()>
Validate that a priority value is known, returning an error if not.