fumadocs-openapi 10.3.7 → 10.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -154,7 +154,7 @@ function generateSchemaUI({ root, readOnly, writeOnly }, ctx) {
154
154
  };
155
155
  refs[id] = out;
156
156
  for (const item of union) {
157
- if (typeof item !== "object" || !isVisible(item)) continue;
157
+ if (!item || typeof item !== "object" || !isVisible(item)) continue;
158
158
  const itemId = getSchemaId(item);
159
159
  const key = `${id}_extends:${itemId}`;
160
160
  scanRefs(key, {
@@ -189,7 +189,7 @@ function generateSchemaUI({ root, readOnly, writeOnly }, ctx) {
189
189
  const props = Object.entries(properties);
190
190
  if (patternProperties) props.push(...Object.entries(patternProperties));
191
191
  for (const [key, prop] of props) {
192
- if (!isVisible(prop)) continue;
192
+ if (!prop || !isVisible(prop)) continue;
193
193
  const $type = getSchemaId(prop);
194
194
  scanRefs($type, prop);
195
195
  out.props.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-openapi",
3
- "version": "10.3.7",
3
+ "version": "10.3.8",
4
4
  "description": "Generate MDX docs for your OpenAPI spec",
5
5
  "keywords": [
6
6
  "Docs",
@@ -90,8 +90,8 @@
90
90
  "tsdown": "^0.20.3",
91
91
  "@fumadocs/tailwind": "0.0.2",
92
92
  "eslint-config-custom": "0.0.0",
93
- "fumadocs-core": "16.6.4",
94
- "fumadocs-ui": "16.6.4",
93
+ "fumadocs-core": "16.6.5",
94
+ "fumadocs-ui": "16.6.5",
95
95
  "tsconfig": "0.0.0"
96
96
  },
97
97
  "peerDependencies": {