pub(crate) fn validate_registry_name(
    name: &str,
) -> Result<(), NameValidationError>