swagger-api / swagger-api/swagger-client

Resolver hangs on definition with circular references

Open
#1,390 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cat: resolver type: bug
Dominant language
JavaScript
Stars
2.7k
Forks
765
Avg merge
1d 1h
Merged PRs (30d)
6

Description

From @hugobarona on September 26, 2018 13:28

Hi there, this is still an issue for me, using this spec: https://github.com/hugobarona/OpenApiSpecification/blob/master/circular_reference_swagger2_spec.yaml. Could you please have a look? I am trying to finalize the spec and i am not able to use the editor to validate it. thanks

Copied from original issue: swagger-api/swagger-editor#1888

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the hang with the circular_reference_swagger2_spec.yaml linked in the issue, using the resolver path that processes the definition. Trace where circular references stop making progress and verify that the resolver completes while still validating the specification without hanging.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.