pub fn validate_version(
tool_name: &str,
version: Option<&str>,
) -> Result<(), CallToolError>Expand description
Validate an optional version string supplied by a tool caller.
Accepts concrete versions and identifiers such as latest while rejecting
path-traversal sequences and characters that could escape the docs.rs path.
ยงErrors
Returns a CallToolError describing the first problem found.