use anyhow::Result;
use serde_json::Value;
use std::path::Path;
mod inspect;
mod normalize;
mod spec;
pub fn normalize_tool_args(tool: &str, args: &mut Value, root: &Path) -> Result<()> {
let specs = spec::field_specs(tool, args)?;
for field in &specs {
normalize::field(args, field, root)?;
}
inspect::reject_unknown_path_fields(args, &specs, String::new())?;
Ok(())
}
#[cfg(test)]
#[path = "../path_guard_tests.rs"]
mod tests;