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

Support HTTP redirects #6

Closed
JamesMessinger opened this issue Dec 31, 2015 · 1 comment
Closed

Support HTTP redirects #6

JamesMessinger opened this issue Dec 31, 2015 · 1 comment

Comments

@JamesMessinger
Copy link
Member

JSON Schema $Ref Parser should automatically follow HTTP redirects. For example, the following code points to a URL that returns an HTTP 302 redirect. If the redirect were followed, then it would result in a valid JSON document. But JSON Schema $Ref Parser doesn't follow the redirect, so it throws an error because the HTTP 302 response is not a valid JSON document.

$RefParser.dereference('http://httpbin.org/redirect/5')
@JamesMessinger
Copy link
Member Author

Fixed in version 2.1.0

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

1 participant