fumadocs-core 16.8.4 → 16.8.5

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.
@@ -13,6 +13,9 @@ declare const metaSchema: z.ZodObject<{
13
13
  collapsible: z.ZodOptional<z.ZodBoolean>;
14
14
  icon: z.ZodOptional<z.ZodString>;
15
15
  }, z.core.$strip>;
16
+ type _JSONType = number | boolean | string | null | _JSONType[] | {
17
+ [key: string]: _JSONType;
18
+ };
16
19
  /**
17
20
  * Zod 4 schema
18
21
  */
@@ -21,7 +24,7 @@ declare const pageSchema: z.ZodObject<{
21
24
  description: z.ZodOptional<z.ZodString>;
22
25
  icon: z.ZodOptional<z.ZodString>;
23
26
  full: z.ZodOptional<z.ZodBoolean>;
24
- _openapi: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
27
+ _openapi: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodCustom<_JSONType, _JSONType>>>;
25
28
  }, z.core.$strip>;
26
29
  //#endregion
27
- export { metaSchema, pageSchema };
30
+ export { _JSONType, metaSchema, pageSchema };
@@ -20,7 +20,7 @@ const pageSchema = z.object({
20
20
  description: z.string().optional(),
21
21
  icon: z.string().optional(),
22
22
  full: z.boolean().optional(),
23
- _openapi: z.looseObject({}).optional()
23
+ _openapi: z.record(z.string(), z.custom()).optional()
24
24
  });
25
25
  //#endregion
26
26
  export { metaSchema, pageSchema };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "16.8.4",
3
+ "version": "16.8.5",
4
4
  "description": "The React.js library for building a documentation website",
5
5
  "keywords": [
6
6
  "Docs",