Fix missing alternative schemas (#3058)

This commit is contained in:
Nolann B.
2025-03-28 06:53:28 +01:00
committed by GitHub
parent 77fd393f15
commit bd353489e9
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@gitbook/react-openapi': patch
---
Fix missing alternative schemas
+1 -1
View File
@@ -50,7 +50,7 @@ function OpenAPISchemaProperty(props: {
circularRefs.set(schema, id);
const properties = getSchemaProperties(schema);
if (properties) {
if (properties?.length) {
return (
<OpenAPIDisclosure context={context} label={getDisclosureLabel(schema)}>
<OpenAPISchemaProperties