pub fn validate_spec_annotations( name: &str, annotations: &BTreeMap<String, String>, ) -> Result<()>