civisanalytics / swagger-diff

Utility for comparing two Swagger specifications.
BSD 3-Clause "New" or "Revised" License
265 stars 32 forks source link

Optional Array with required attributes #2

Closed ericmillsio closed 8 years ago

ericmillsio commented 8 years ago

On a POST to endpoint /foo with an attribute bars of type array of elements Bar, the diff throws the following error:

- post /foo/
  - new required request param: bars[]/name
  - new required request param: bars[]/value

bars is a new attribute on the POST /foo endpoint. Both name and value are required attributes of Bar elements in the array. If the root element bars is new, I would expect that that is not a breaking changes to the contract.

cc @jeffreyc