Skip to main content

Module normalize

Module normalize 

Source
Expand description

Deterministic rule forms.

canonical is what pull writes: volatile fields removed and keys sorted. comparable is what diff compares: canonical plus server defaults. They remain separate so pull does not write defaults the author omitted.

Functionsยง

canonical
The on-disk form.
comparable
The comparison form.
fill_defaults
Add fields the server fills on create without overwriting explicit values.
sort_rules
Sort rules for stable file output and diff reports. Rules with unreadable rule_id values sort last.
strip_volatile
Remove the server-owned fields that change on every write.