Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OlafvdSpek opened this issue Feb 9, 2017 · 1 comment
Assignees

Comments

@OlafvdSpek
Copy link

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
Copy link
Collaborator

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.

@cyprieng cyprieng self-assigned this Feb 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants