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

OpenAPI with multiple files and recursive $refs causes infinite loop #2729

Open
pedrogude opened this issue Nov 13, 2024 · 0 comments
Open

Comments

@pedrogude
Copy link

Describe the bug
Given an API with multiple files and recursive $refs, when executing the linting the process enters an infinite loop

To Reproduce

  1. Given this OpenAPI/AsyncAPI document test-api.zip
  2. Run this CLI command spectral lint openapi-rest.yml
  3. See error: No error occurs, it runs infinitely

Expected behavior
The process ends in a few seconds

Environment (remove any that are not applicable):

  • Library version: [6.11.0]
  • OS: [Linux]

Additional context
If I bundle the API, (in the attached zip), the process ends in approximately 1 second

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

1 participant