-
Notifications
You must be signed in to change notification settings - Fork 212
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
Fixing issue #309 - References outside components and paths are not resolved #645
base: develop
Are you sure you want to change the base?
Conversation
@erfemega There are some conflicts that need resolution. Also, if you see |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is not addressing all the places we're r4esolving references. See here.
Do take a look at all places where we resolve $ref
objects and add appropriate changes.
- Referencing from out of components - Referencing paths from pathItems in oas 3.1 - Adding circular references in dereference process - Adding test scenarios
The method and implementation were changed to other location
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks good overall, there are some conflicts and one comment pending. Let's address it.
* @returns {boolean} whether is circular reference or not. | ||
*/ | ||
isCircularReference: function (traverseContext, contentFromTrace) { | ||
return traverseContext.parents.find((parent) => { return parent.node === contentFromTrace; }) !== undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erfemega Is this a deep comparison?
Is there anything I can do to get this cleared out? |
This PR fixes issue #309
It was added a suite of tests to validate that all referenceable elements:
are well resolved in both cases: