Skip to content

How with the 'backward-compatibility-check' command chech 2 files #1559

Discussion options

You must be logged in to vote

Hey @zanimonets,

The new command backward-compatibility-check checks compatibility between different versions of your API specification files by comparing your local changes to the committed version in the repository.

For example:
To ensure backward compatibility using Specmatic, you can run the following command, assuming the openapi.yaml is already in your Git repository & the new changes made are local or in CI pipeline:

 specmatic backward-compatibility-check --target-path openapi.yaml

--target-path : Only used to limit the scope of check to particular file or directory while generally all the files are targeted.

For more details, check this Specmatic documentation for backward compat…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zanimonets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered The issue has been answered
3 participants