Skip to main content

diff

Function diff 

Source
pub fn diff(
    from_version: u32,
    to_version: u32,
    from: &Value,
    to: &Value,
) -> SchemaDiff
Expand description

Walk from and to schema values and emit a structured diff.

added_paths are JSON Pointer paths present in to but not in from. removed_paths are the inverse. changed_types flags any terminal-value type changes (e.g., "integer" to "string" at the same path).