-
-
Notifications
You must be signed in to change notification settings - Fork 240
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 when trying to lint schemas with circular references #870
Comments
Forgot to post an update on this one. |
@P0lip would this also be the cause for inconsistent failures when linting with v5? I'm attaching an example that replicates the inconsistent failures we are seeing (which has been maddening to debug). The screenshot below is running the attached example multiple times in a row. I feel like it would be really weird if I figured I would comment here before opening a new issue if it happens to be symptoms of the same behavior. If you don't think this is causing it, I can open a new issue with the same information to better track the cause. |
We have the same issue, please note that it's not about circular references but rather just following references properly so the issue title should be fixed. |
@kylesykes @lehphyro
answering your question - that is totally possible. |
@P0lip did we get this one sorted out? |
Not yet. I was hoping to fix json-ref-resolver and started working on the fix, but since we decided to abandon it, it didn't move any forward. |
Ok, let's consider this issue superseded by #1054. Moving to a popular, well used JSON Ref package should be a big win for trouble like this, especially with $ref changes coming in OAS3.1. |
When we run the command spectral lint in our project, we are having the following error
1:1 error invalid-ref ENOENT: no such file or directory, open '<path>/openapi-simplifed.yaml'
We are running the command like this
spectral lint schemas-2/*.yaml
You can try to run the spectral lint in this sample to test.
github-error-sample.zip
Thanks
The text was updated successfully, but these errors were encountered: