Skip to content

Commit 3173d8e

Browse files
authored
Remove top level circular refs in alternatives (#2924)
1 parent 31e3810 commit 3173d8e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/little-experts-deny.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/react-openapi': patch
3+
---
4+
5+
Remove top level circular refs in alternatives

packages/react-openapi/src/OpenAPISchema.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function OpenAPISchemaProperty(props: {
5757
<OpenAPISchemaAlternative
5858
key={index}
5959
schema={schema}
60-
circularRefs={circularRefs}
60+
circularRefs={new Map(circularRefs)}
6161
context={context}
6262
/>
6363
))}

0 commit comments

Comments
 (0)