Skip to main content

validate_workspace_name

Function validate_workspace_name 

Source
pub fn validate_workspace_name(name: &str) -> Result<(), RepographError>
Expand description

Enforce the workspace naming policy: lowercase ASCII alphanumerics and hyphens, must start alphanumeric, length 1..=63, and not one of the reserved words.

ยงErrors

Returns RepographError::InvalidName with kind = "workspace" when the name violates the policy. The reason text is a short, user-facing phrase.