Expand description
Structural diff between two JSON values — a port of the TS diff command’s
collectDiffEntries / collectRecursiveDiff. Used to surface what
normalize_board_model changed relative to the parsed board.yaml.
Rust serializes Option::None fields as null, whereas the TS model is
sparse (absent keys are undefined). prune_nulls drops null-valued
object entries so both sides diff the same shape the TS CLI does.
Structs§
- Diff
Entry - One difference at a given path.
before/afterare omitted from JSON whenNone.
Enums§
- Diff
Kind - Classifies a single
DiffEntry. Serializes lowercase (added/removed/changed).
Functions§
- collect_
diff_ entries - Collect every difference between
beforeandafter, sorted by path. - prune_
nulls - Recursively remove
null-valued object entries (object keys only; array elements are preserved so indices stay stable), mirroring how JS omitsundefinedobject properties.