drewish/rspec-rails-swagger

Check that body parameter properly defines schema

drewish opened this issue · 0 comments

Currently it's just checking for non-empty but we should have it accept either:

  • schema: { '$ref' => '#/definitions/QBOConnection' }
  • schema: { ref: '#/definitions/QBOConnection' } (like we do with the response schema)
  • schema: { type: :array, items: { type: :string } }