transitio.report.build_report#
- transitio.report.build_report(validation, *, hosted=None, provenance=None)#
Merge a
validate_feedresult with an optional hosted report.- Parameters:
validation (dict) – The
transitio.validate_feedresult.hosted (dict, optional) – A hosted canonical-validator JSON report for the same dataset version (
MobilityDatabase.validation_report); its notice groups are merged by code.provenance (dict, optional) – Provenance block (feed/dataset IDs, source URL, checksums, retrieval timestamp) — typically the download sidecar contents — embedded verbatim for reproducibility.
- Returns:
{"summary": {...}, "notices": [...]}. Each notice group carriescode,severity,source(local/hosted/both),totalNotices(local occurrences),hostedTotalNoticeswhen the hosted report has the same code, and up to 50sampleNoticescontext mappings.- Return type:
dict