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

Schema validator test fails to execute #1164

Closed
vadeg opened this issue Jul 3, 2020 · 0 comments · Fixed by #1165
Closed

Schema validator test fails to execute #1164

vadeg opened this issue Jul 3, 2020 · 0 comments · Fixed by #1165

Comments

@vadeg
Copy link
Contributor

vadeg commented Jul 3, 2020

swagger-schema.json contains a reference to schema http://swagger.io/v2/schema.json#. This schema returns

HTTP/1.1 301 Moved Permanently
Location: https://schema.swagger.io/v2/schema.json
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1><p>The document has moved <a href="https://schema.swagger.io/v2/schema.json">here</a>.</p>
</body></html>

This is considered by jsonschema library as an invalid JSON because it does not support redirects.

Zally redirects http://swagger.io/v2/schema.json# to a schema stored locally in rules but not in tests. Need to fix test to support redirects as well.

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

Successfully merging a pull request may close this issue.

1 participant