fumadocs-openapi 2.0.3 → 2.0.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.
package/dist/index.d.ts CHANGED
@@ -36,7 +36,7 @@ interface Config {
36
36
  *
37
37
  * file: Generate a page for each schema
38
38
  *
39
- * @defaultValue tag
39
+ * @defaultValue file
40
40
  */
41
41
  per?: 'tag' | 'file';
42
42
  /**
package/dist/index.js CHANGED
@@ -459,7 +459,9 @@ function render(title, description, content, {
459
459
  frontmatter: result.frontmatter ?? [
460
460
  "---",
461
461
  title && `title: ${title}`,
462
- description && `description: ${description}`,
462
+ description && `description: |
463
+ ${description.split("\n").join("\n ")}
464
+ `,
463
465
  "---"
464
466
  ].filter(Boolean).join("\n"),
465
467
  imports: result.imports ?? [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-openapi",
3
- "version": "2.0.3",
3
+ "version": "2.0.5",
4
4
  "description": "Generate MDX docs for your OpenAPI spec",
5
5
  "keywords": [
6
6
  "NextJs",