in core/sdk/src/topics/update_topic.rs [85:97]
fn validate(&self) -> Result<(), IggyError> {
if self.name.is_empty() || self.name.len() > MAX_NAME_LENGTH {
return Err(IggyError::InvalidTopicName);
}
if let Some(replication_factor) = self.replication_factor {
if replication_factor == 0 {
return Err(IggyError::InvalidReplicationFactor);
}
}
Ok(())
}