Skip to main content

validate_version

Function validate_version 

Source
pub fn validate_version(version: &str) -> Result<(), PipePathError>
Expand description

Validate a semver-like version string against ^[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9.]+)?$.

Used by callers that want to render {service}-{version} into a pipe name themselves (the helpers here keep the name format flat, but the validator is exposed for the broker-side dispatch table).