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

'checkLocalCircular' is to strict #19

Open
sebilasse opened this issue Aug 4, 2016 · 1 comment
Open

'checkLocalCircular' is to strict #19

sebilasse opened this issue Aug 4, 2016 · 1 comment
Assignees

Comments

@sebilasse
Copy link

latest module and node version:

checkLocalCircular is to strict :

Let's say in a file I have

"definitions": {
  "array": {
    "type": "array",
    "items": {"$ref": "#"}
  }
}

but this definition is NOT used anywhere inside the file.

Still I get
[Error: Circular self reference]

@sebilasse
Copy link
Author

sebilasse commented Aug 5, 2016

I would expect it to leave the $ref intact when the file has an unused definition like above rather than throwing an error.
Only if elem.from in the definition has any counterparts (in the same file) referencing it in elem.to it should throw the error.

@bojand bojand self-assigned this Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants