Trax-air / swagger-tester

Automatically test your swagger API
MIT License
105 stars 36 forks source link

ValueError: None is not a valid swagger2.0 file: u'swagger' is a required property #46

Open OlafvdSpek opened 7 years ago

OlafvdSpek commented 7 years ago
swagger_test(app_url= 'http://api-dev.cyclewe.com/docs/api-docs.json')

ValueError: None is not a valid swagger2.0 file: u'swagger' is a required property

<snip>

On instance:
    {u'code': 404, u'description': u'', u'message': u''}

Perhaps it's not handling a 404 properly. What exactly am I supposed to pass to swagger_test?

cyprieng commented 7 years ago

You just have to pass the link to the root of your API. But after that swagger-tester is looking for swagger.json at the root of your api, which is not the case in your API. I can add a parameter to set the path to the json.