Skip to content

Commit

Permalink
fix: fixes schema extraction with nested union refs (#8096)
Browse files Browse the repository at this point in the history
Co-authored-by: Bjørge Næss <bjoerge@gmail.com>
  • Loading branch information
rneatherway and bjoerge authored Jan 7, 2025
1 parent e3e3ad1 commit ac62487
Show file tree
Hide file tree
Showing 6 changed files with 7,623 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@ export function extractFromSanitySchema(
}

try {
unionRecursionGuards.add(guardPathName)
if (guardPathName !== 'reference') {
unionRecursionGuards.add(guardPathName)
}

candidates.forEach((def, i) => {
if (typeNeedsHoisting(def)) {
Expand Down
Loading

0 comments on commit ac62487

Please sign in to comment.