Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
itache opened this issue Dec 29, 2017 · 2 comments
Open

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

itache opened this issue Dec 29, 2017 · 2 comments

Comments

@itache
Copy link

itache commented Dec 29, 2017

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]>
@RobWin
Copy link
Owner

RobWin commented Dec 30, 2017

Hi would you like to contribute a fix?

@alansegar
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants