HTML report command

Generate the interactive offline report.

The html-report command generates a self-contained interactive HTML report that works offline. It is the richest way to explore the semantic diff in a browser.

Examples:

openapi-changes html-report ./ sample-specs/petstorev3.json && open report.html openapi-changes html-report HEAD~1:openapi.yaml ./openapi.yaml && open report.html

You should see something like this:


Useful flags

Write to a different file

Use --report-file to choose a different output filename.

openapi-changes html-report --report-file changes.html ./ sample-specs/petstorev3.json

Exclude the explorer graph

Use --no-explorer if you want a smaller output bundle and do not need the explorer graph tab.

openapi-changes html-report --no-explorer ./ sample-specs/petstorev3.json

Theme flags

The HTML report also exposes the shared theme flags at the CLI layer:

openapi-changes html-report --roger-mode ./ sample-specs/petstorev3.json

See Command Arguments for the shared flags.