pub fn validate_version(version: &str, kind: FileKind) -> Result<(), String>
Validate a version string according to the file kind