Hi, there are some compatibility tools which can be used to check compatibility on the source or binary output from a build.
You can compare against the last release etc, see this tool e.g. http://www.mojohaus.org/clirr-maven-plugin/index.html I agree it would be great to have a tool which checked for binary compatibility breaks in the interface contract alone! Something even vb6 compatibility checking allowed you to do, or IDL comparison tools. On Monday, October 8, 2018 at 9:53:49 PM UTC+1, Denes Daniel wrote: > > Hey everyone, > > I'm looking for a tool that would allow my team to validate that our > service API is backwards compatible on each release. Something that we can > plug into our release process, that would fail the build / test / deploy if > there is a breaking change between the current and the previous > "swagger.json" file. We give it two JSON files, and it returns a boolean: > compatible or not (exit code 0 or not). > > So far the only tool I found with such a feature is Swagger Diff, the Ruby > version (https://github.com/civisanalytics/swagger-diff), however, it > seems to miss certain breaking changes, and we have no expertise in Ruby to > fix any bugs. We're Java-focused, and there is a Java version too ( > https://github.com/Sayi/swagger-diff), but that only generates a list of > differences, it doesn't classify them as breaking vs. non-breaking. We may > be able to build our own logic around that changelist, but I'd like to > avoid reinventing the wheel if possible. Also, these projects don't seem to > have a lot of activity (last commits 5+ months ago), not sure whether > there's anyone actively maintaining them. > > What are others using for this purpose? Is there anything recommended by > the Swagger community? Are there any plans for such a tool? > > I found a few others looking for the same thing, but no perfect solution > yet: > > https://stackoverflow.com/questions/28098715/is-there-a-way-to-detect-when-a-swagger-changes > https://github.com/OAI/OpenAPI-Specification/issues/233 > > Thanks, > Denes > -- * <http://wandisco.com>* **The LIVE DATA Company *Find out more *wandisco.com <http://wandisco.com/>* <https://www.wandisco.com/welcome-live-data-world-video> * THIS MESSAGE AND ANY ATTACHMENTS ARE CONFIDENTIAL, PROPRIETARY AND MAY BE PRIVILEGED If this message was misdirected, WANdisco, Inc. and its subsidiaries, ("WANdisco") does not waive any confidentiality or privilege. If you are not the intended recipient, please notify us immediately and destroy the message without disclosing its contents to anyone. Any distribution, use or copying of this email or the information it contains by other than an intended recipient is unauthorized. The views and opinions expressed in this email message are the author's own and may not reflect the views and opinions of WANdisco, unless the author is authorized by WANdisco to express such views or opinions on its behalf. All email sent to or from this address is subject to electronic storage and review by WANdisco. Although WANdisco operates anti-virus programs, it does not accept responsibility for any damage whatsoever caused by viruses being passed. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
