Skip to content

Source, History and breaking changes

Edit in the doc bar opens the spec’s YAML or JSON in Source. Problems are marked as you type, with a fix where there is one (F8 goes to the next, ⌘⇧M lists them). Preview shows the reference as your edits would publish it; Changes shows your edits against the published file. Save publishes the next version.

Unsaved edits are kept in this browser until you save or cancel, even for a large spec. Cancel asks before it drops them. A problem picked in Problems opens Source at its line.

If someone publishes while you edit, Save says so and shows what differs from their version. Save anyway puts yours on top; theirs stays in History.

A spec published from a repo opens with a note: its next publish from the repo replaces edits made here.

History’s API tab lists the versions with what each changed:

  • Breaking (red): clients will fail, such as an operation removed or a parameter made required.
  • Likely breaking: clients may fail, such as a new value in a response’s enum.
  • Not breaking: additions and descriptions.

Open a version to see each changed operation or schema, its changes in words, and before and after side by side. Compared with picks any earlier version. Restore makes an old version current again.

From the CLI: dockito changes <doc> --since 12 --breaking (exit code 3 when something breaks).