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

fix(walker): support circular JSON $refs with overrides #26

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

P0lip
Copy link
Contributor

@P0lip P0lip commented Nov 16, 2023

Related to #19

The actual fix here is initializing initialFragment earlier so that its initially assigned value isn't an already mutated schema fragment.
Unsure whether this will help with the tricky spec, since allOf merging might be the bottleneck now

The other change is mostly a little optimization to abort quickly if the resolved fragment has been already processed.

@P0lip P0lip self-assigned this Nov 16, 2023
@P0lip P0lip requested a review from mallachari November 16, 2023 19:42
@P0lip P0lip merged commit 46d92ce into master Nov 17, 2023
3 checks passed
@P0lip P0lip deleted the fix/walker/circular-refs-with-overrides branch November 17, 2023 16:30
Copy link

🎉 This PR is included in version 2.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants