westfieldlabs / apivore

Tests your rails API against its Swagger description of end-points, models, and query parameters.
Apache License 2.0
213 stars 66 forks source link

Responds matches should support reference objects #105

Closed kassi closed 7 years ago

kassi commented 7 years ago

Currently only inline responses with a defined schema are supported.

Especially when it comes to describing error responses you typically want to define them under the top level responses: key and reference them via

get:
  responses:
    "401":
      "$ref": "#/responses/Unauthorized"

This does however currently result in: Swagger doc: /doc/api.json missing response model for get request with /xxx for code 401

kassi commented 7 years ago

ok - dup to #84