-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Could not resolve reference when $ref relative path files. "basePath" undefined. #2746
Comments
Up |
Yup, we should put that in the known issues. Unfortunately, this is not going to be an immediate fix. |
Same problem here !! |
This was fixed in swagger-js. |
@buunguyen, How is this fixed? I'm still having this issue today? I'm talking about the editor, the ui seems to work OK. |
The editor is based on the UI. If it works in the UI, it'll work in the editor. Likely you're using an old version. |
@webron I'm actually having problem with the new version. version 2 of the editor http://editor2.swagger.io has preferences where I can set the 'Pointer Resolution Base Path', but the new version of the editor, does not provide a preference screen. |
Okay, well that's an issue with the editor, not the ui. |
@buunguyen Can you point to where this was fixed in |
Is this issue fixed on editor ? |
This issue is still present even in the online editor. |
Please file a new ticket. |
any news? |
This is fixed in Swagger UI - if you're having an issue with the Editor, please open an issue there, but there is one open there already for this: swagger-api/swagger-editor#1409 |
After upgrading to v3, the relative path references are not working:
e.g.
will result in:
Could not resolve reference because of: Tried to resolve a relative URL, without having a basePath. path: 'paths/index.yaml' basePath: 'undefined'
The text was updated successfully, but these errors were encountered: