{"record":{"id":"a98f50badd57136b","repo":"cross-rs/cross","slug":"some-files-were-not-validated","errorCode":null,"errorMessage":"some files were not validated","messagePattern":"some files were not validated","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"xtask/src/changelog.rs","lineNumber":572,"sourceCode":"\n        let value = match serde_json::from_str(&contents)\n            .wrap_err_with(|| format!(\"unable to parse JSON for \\\"{}\\\"\", path.display()))\n        {\n            Ok(value) => value,\n            Err(e) => {\n                errors.push(e);\n                continue;\n            }\n        };\n\n        let res = ChangelogEntry::from_value(id, value)\n            .wrap_err_with(|| format!(\"unable to extract changelog from \\\"{}\\\"\", path.display()))\n            .map(|_| ());\n        errors.extend(res.err());\n    }\n\n    if !errors.is_empty() {\n        return Err(crate::util::with_section_reports(\n            eyre::eyre!(\"some files were not validated\"),\n            errors,\n        ));\n    }\n    // also need to validate the existing changelog\n    let _ = read_changelog(&root)?;\n\n    Ok(())\n}\n\n#[cfg(test)]\nmod tests {\n    use super::*;\n\n    macro_rules! s {\n        ($x:literal) => {\n            $x.to_owned()\n        };","sourceCodeStart":554,"sourceCodeEnd":590,"githubUrl":"https://github.com/cross-rs/cross/blob/8c1a8aa4b661711f4b7b6ac07c2e8929ce2f7d27/xtask/src/changelog.rs#L554-L590","documentation":"Aggregated failure from the changelog validation xtask: while validating every changelog entry file, at least one file failed JSON parsing or ChangelogEntry::from_value extraction; all individual errors were collected (with their file path context) and this error is returned with the section reports so every problem is shown at once.","triggerScenarios":"Thrown at xtask/src/changelog.rs:572 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix each reported changelog file so it parses as valid JSON and satisfies the ChangelogEntry schema","Re-run the changelog xtask until no validation errors remain","Check recently added/edited files under the changelog directory against an existing valid entry"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c1a8aa4b661711f4b7b6ac07c2e8929ce2f7d27","analyzedAt":"2026-09-13T15:10:43.988Z","contentChangedAt":"2026-09-13T15:10:43.988Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}