Trax-air/swagger-tester

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

Opened this issue · 1 comments

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?

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.