Swagger Contract Diff
A build/release task for comparing Swagger Contracts.
Pass in URLs or Paths of Swagger 2.0 Contracts.
The task will compare the two contracts "left-side" and "right-side".
It will output any differences as info, warning, errors depending on the configuration.
You can use the task for making sure a certain Swagger contract still is in compliance with a specification.
If an ERROR occurs, the task will per default STOP the build or release pipeline. Hence it can act as a quality gate for e.g. a release
Rules performs a diff/comparison checking. They are separated in 2 groups:
You can override the configuration of how changes are treated by passing in a custom JSON configuration override in the advanced section of the tasks properties.
The numbers in the sample above map to log levels:
Configure specific rules
You can also configure different log-levels for specific rules: