Skip to content

fix: inso dereferencing/flattening $refs #6080

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

Merged
merged 4 commits into from
Jul 3, 2023

Conversation

jackkav
Copy link
Contributor

@jackkav jackkav commented Jul 3, 2023

Motivation
Inso is often used with deck which doesn't support $ref linking, so we must first dereference it.
#4872 appears to have broken dereferencing, preventing inso output to be consumed by deck.
Also I have added a OAS validation before dereferencing in order to reduce the number of cases we must support with this tool.

Two options for dealing with circular references:

  1. Custom javascript replacer function? - https://apitools.dev/swagger-parser/docs/#circular-refs
  2. Do nothing, ignore them and don't support it.

We have chosen option 2

TODO

closes INS-2800

changelog(Fix): Reverted inso circular refs for request validator change in order to better support ref usage in general:

@jackkav jackkav marked this pull request as ready for review July 3, 2023 14:05
@jackkav jackkav enabled auto-merge July 3, 2023 14:19
@jackkav jackkav added this pull request to the merge queue Jul 3, 2023
Merged via the queue into Kong:develop with commit d0240e3 Jul 3, 2023
@jackkav jackkav deleted the fix/inso-dereferencing branch July 3, 2023 14:38
jackkav added a commit to jackkav/insomnia that referenced this pull request Nov 24, 2023
* wip

* manually revert 4872 disabling request validator circular refs

* clean up

* clean up
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

Successfully merging this pull request may close these issues.

2 participants