mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 23:55:20 +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);
|
circularRefs.set(schema, id);
|
||||||
|
|
||||||
const properties = getSchemaProperties(schema);
|
const properties = getSchemaProperties(schema);
|
||||||
if (properties) {
|
if (properties?.length) {
|
||||||
return (
|
return (
|
||||||
<OpenAPIDisclosure context={context} label={getDisclosureLabel(schema)}>
|
<OpenAPIDisclosure context={context} label={getDisclosureLabel(schema)}>
|
||||||
<OpenAPISchemaProperties
|
<OpenAPISchemaProperties
|
||||||
|
|||||||
Reference in New Issue
Block a user