We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77fd393 commit bd35348Copy full SHA for bd35348
.changeset/chilled-eggs-attack.md
@@ -0,0 +1,5 @@
1
+---
2
+'@gitbook/react-openapi': patch
3
4
+
5
+Fix missing alternative schemas
packages/react-openapi/src/OpenAPISchema.tsx
@@ -50,7 +50,7 @@ function OpenAPISchemaProperty(props: {
50
circularRefs.set(schema, id);
51
52
const properties = getSchemaProperties(schema);
53
- if (properties) {
+ if (properties?.length) {
54
return (
55
<OpenAPIDisclosure context={context} label={getDisclosureLabel(schema)}>
56
<OpenAPISchemaProperties
0 commit comments