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

Unable to resolve $ref pointer "file:///openapi.json" #587

Closed
lalib opened this issue Jul 31, 2018 · 1 comment
Closed

Unable to resolve $ref pointer "file:///openapi.json" #587

lalib opened this issue Jul 31, 2018 · 1 comment
Labels

Comments

@lalib
Copy link

lalib commented Jul 31, 2018

Hi there,

I am experimenting ReDoc locally but i got the following error message when i try to use the api spec locally.

Something went wrong...
Unable to resolve $ref pointer "file:///openapi.json"
Stack trace
SyntaxError: Unable to resolve $ref pointer "file:///openapi.json"
    at Function.syntax (file:///node_modules/redoc/bundles/redoc.standalone.js:55:33727)
    at file:///node_modules/redoc/bundles/redoc.standalone.js:73:35706

ReDoc Version: 2.0.0-alpha.30 
Commit: ea2210a

I have found the following PR as merged but i am not sure if it is released or not.

sphinx-contrib/redoc#14

Also I found the following issues:

#149
#390
#113

Is it not supported to load apis locally?

Best,

Bilal

@RomanHotsiy
Copy link
Member

@lalib yes, there is no way ReDoc can load the spec from local file system due to browser security restrictions. All the details are described in #149.

You can use redoc-cli bundle command which works pretty similar to sphinx-contrib/redoc#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants