Understand OpenAPI-diff output formats
masterOpenAPI-diff provides change analysis in three primary formats depending on your integration needs:
- CLI Output: A human-readable text summary displayed in the terminal, categorized by 'What's New', 'What's Deleted', 'What's Deprecated', 'What's Changed', and a final 'Result' indicating if backward compatibility was broken.
- Markdown: A structured document suitable for inclusion in pull request comments or documentation, using Markdown syntax to list changes to endpoints, parameters, and return types.
- JSON: A machine-readable schema designed for programmatic consumption. It provides detailed objects for
newEndpoints,changedOperations, and boolean flags likecompatible,incompatible, anddifferentto allow automated CI/CD gating.
Use the JSON output if you need to build custom tooling or automated breaking-change detectors.