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

Skip path items that are not HTTP verbs #60

Closed jszwedko closed 9 years ago

jszwedko commented 9 years ago

As they don't correspond to resource routes, currently this just includes parameters.

See https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#path-item-object

Addresses #59

hornc commented 9 years ago

Thanks @jszwedko, this is great! I had overlooked that parameters could be placed directly under the path. Knowing this now I can DRY up my own swagger :) I've raised another PR to add an example to the main test swagger here https://github.com/westfieldlabs/apivore/pull/61

jszwedko commented 9 years ago

@hornc awesome, thank you! Apologies, I meant to add a test, but must have forgotten.