Skip to main content

diff_object

Function diff_object 

Source
pub fn diff_object(eng: &Value, k3s: &Value, sev: Severity) -> Vec<Divergence>
Expand description

Recursive object differ. k3s is the oracle: a key on k3s that engenho lacks is a MissingDefault; a key engenho adds that k3s lacks is an ExtraField; a shared key with differing values is a FieldDiff. Diff two already-normalized JSON objects.

Public because the OCI-runtime differential (crate::butai) compares state documents with exactly these semantics and must not grow a second recursive JSON differ that can disagree with this one about what counts as a difference.