repair

repair() applies the safe JSON Patch on each error and revalidates. It does not invent data. A missing or unknown type is reported first.

spec.json200 · valid

Open the playground to edit a spec with validate, repair, and export.

Patch

repair() returns the next spec and the JSON Patch it applied, then revalidates. It does not invent rows. A missing or unknown type is reported first.