pub fn reconcile(
existing: &SchemaRegistry,
unit_tables: &HashMap<String, UnitTable>,
errors: &mut Vec<CompileError>,
) -> (SchemaRegistry, HashMap<String, i64>)Expand description
Reconcile every event across every unit against the given registry.
Returns the updated registry document and the effective schema version
for each event, keyed the same way as the document itself
(<unit>.<EventName>). Diagnostics for a mismatched @schema(N) or a
non-additive change are pushed onto errors.