pub fn validate(inventory: &Inventory) -> ValidationReport
validate an inventory and return the report.