- Add a unit test for your scenario in one of the test files under checker with a comment "BC: <use-case> is breaking"
- Add any accompanying OpenAPI specs under data
- Add localized texts under checker/localizations_src (you can use Google Translate for Russian)
- Update localization source file:
To install go-localize:
go-localize -input checker/localizations_src -output checker/localizations
go install github.com/m1/go-localize@latest
- Make sure that checker/localizations/localizations.go contains the new messages
- Create new go file under checker and name it by the breaking change use case
- Create a check func inside the file and name it accordingly
- Add the checker func to the defaultChecks or optionalChecks list
- Optionally, add additional unit tests and comment them with "BC: <use-case> is breaking" or "BC: <use-case> is not breaking"
- Update BREAKING-CHANGES-EXAMPLES.md:
./scripts/test.sh
- Make sure that BREAKING-CHANGES-EXAMPLES.md was updated with your use-cases
- If your check is optional, also add it to this list of optional checks
See this example of adding a custom check: https://github.com/Tufin/oasdiff/pull/208/files