mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-12 05:48:57 +00:00
Fix missing alternative schemas (#3058)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@gitbook/react-openapi': patch
|
||||
---
|
||||
|
||||
Fix missing alternative schemas
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user