Diff Mode

When modifying an API in Code Editor, you can preview the implemented changes and compare them with the last saved definition. You can also review the editions added to your API by HaloAI before deciding whether to keep them. This comparison feature is available through Code Editor's Diff Mode. It currently supports OpenAPI 3.1 and AsyncAPI specifications.Code Editor for OpenAPIDesign with AI

Open Diff Mode

You can only preview modifications to an API that has previously been saved - one that is not a draft.Draft Editor

To compare the editions to your API with the last saved definition, click the Diff Mode option on the toolbar:

AHDesign_screenshot_Diff_Mode_01.png

Alternatively, when editing your API using HaloAI, select the Diff Mode option available in the chat:

AHDesign_screenshot_Diff_Mode_02.png

Edit in Diff Mode

In Diff Mode, the editor displays two panels: the left shows the last saved version of your API, and the right shows the updated version. The modified lines are highlighted in color:

AHDesign_screenshot_Diff_Mode_05.png

To undo an individual change, hover between the corresponding lines in your API versions and click the arrow that appears.

After completing the edits, save your updates or revert to the last saved version by selecting an option on the toolbar:

AHDesign_screenshot_Diff_Mode_04.png
Publication date: