-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
ReDoc doesn't resolve relative file URL to swagger spec #390
Comments
What happens when you go to |
I see the contents of YAML file in browser. |
Curious what you mean by:
Do you mean it won't follow a |
So my swagger.yaml doesn't have any $ref. That's the error message string being thrown by ReDoc. I must clarify that I am not running any web server. I just have the swagger.yaml and index.html (with the HTML code above) in the same directory. I am then trying to open index.html in a browser by double-clicking on it. |
Hey guys. This is a duplicate of #149 I think I will finally fix in the upcoming alpha release. |
redoc-standalone.js and swagger.yaml are in the same directory. HTML looks like this:
I get an exception when trying to load the html.
Unable to resolve $ref pointer "file:///Users/max/Desktop/ReDoc/demo/swagger.yaml"
Seems like local file URLs are not resolved correctly.
The text was updated successfully, but these errors were encountered: