RobWin/assertj-swagger

Adding a new operation to an endpoint shouldn't break contract

Opened this issue · 2 comments

satisfiesContract shouldn't fail if the implementation has a new operation.

At the moment we get an error:

org.assertj.core.api.SoftAssertionError:
The following assertion failed:

  1. [Checking 'PATCH' operation of path '/v1/contact/{id}'] expected: null but was:<io.swagger.models.Operation@d5a4bc7[updateContact]>

Hi would you like to contribute a fix?

@itache Which version was this raised against?
I think this has since been fixed by @atsu85. As far as I can tell it's the same issue as reported in #26 which has been fixed in v0.7.0.
I encountered the same problem when using v0.5.0 and upgrading to the latest v0.8.0 fixed it.