Skip to content

Adding a new non-required parameter to an endpoint shouldn't break contract #11

Description

@madgnome

satisfiesContract shouldn't fail if the implementation has an additional non-required parameter.

At the moment we get an error:

org.assertj.core.api.SoftAssertionError: 
The following assertion failed:
1) [Checking parameters of 'GET' operation of path '/mentions/search'] 
Actual and expected should have same size but actual size is:
 <3>
while expected is:
 <2>
Actual was:
<[io.swagger.models.parameters.QueryParameter@7569d537,
    io.swagger.models.parameters.QueryParameter@39224809,
    io.swagger.models.parameters.QueryParameter@4a3f02dd]>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions