How with the 'backward-compatibility-check' command chech 2 files #1559
-
The 'specmatic compare openapi1.yaml openapi2.yaml' works fine and marked as deprecated
and specmatic backward-compatibility-check --target-path openapi2.yaml -> 1. Running the check for openapi2.yaml: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@zanimonets Thanks for reaching out. We will get back to you shortly on this. |
Beta Was this translation helpful? Give feedback.
-
Hey @zanimonets, The new command For example: 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 compatibility -
Hope this helps! |
Beta Was this translation helpful? Give feedback.
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:
--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…