-
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
Error resolving $ref pointer #541
Comments
Thanks again for the detailed issue report! It seems to be caused by the issue in json-schema-ref-parser. I've opened a PR already: APIDevTools/json-schema-ref-parser#90 |
Thanks for investigating. I built a new standalone redoc with the commit from your PR here: APIDevTools/json-schema-ref-parser#90 Unfortunately, I'm still getting an error, though the error has changed. You can see it here: https://files.benramsey.com/test/openapi-redoc/parser-5fe2988.html Perhaps I built the standalone version wrong? I changed the dependency in
And then I ran |
Opened one more PR: manuelstofer/json-pointer#30 (which is a dependency of I will try to migrate |
actually just figured out I was wrong with the PR to json-pointer. |
Great! That does fix the problem: |
(together with your PR to |
When can we expect this fix to be released? :) |
Once this fix is released Mermade/oas-kit#70 |
It looks like the fix in Mermade/oas-kit#70 is in See here: https://files.benramsey.com/test/openapi-redoc/index.html |
Oh, sorry. |
Thanks! |
I'm using speccy to resolve separate OpenAPI files into a single file, but while this single file validates and displays properly in the Swagger Editor, ReDoc has problems with it.
Actual Results
This is the error I'm seeing when trying to load my OpenAPI documentation in ReDoc:
You can see a live example of the error here:
Expected Results
I expect to see ReDoc render the documentation, like this: https://files.benramsey.com/test/openapi-redoc/working.html.
Steps To Reproduce
A complete example repository with all the source files and instructions I use to generate them is located here: https://github.com/ramsey/openapi-redoc-testing.
Noteworthy Behavior
In the example repository, if I move the external path schemas (
./openapi/paths/user.yaml
and./openapi/paths/user-id.yaml
) into the./openapi/openapi.yaml
file (instead of using$ref
), then when I resolve it with speccy, ReDoc is properly able to render this.This working example was produced by moving the external path schemas into the main
openapi.yaml
document:It's possible this is an issue with how speccy resolves the paths and not ReDoc, but I've discussed with @philsturgeon, and he recommended I talk to the ReDoc team first to rule it out.
The text was updated successfully, but these errors were encountered: