Skip to content

Commit e9825c8

Browse files
sserrataclaude
andcommitted
fix(theme): restore schemaExpansion JSDoc by moving hideGeneratedSnippets
The previous placement inserted hideGeneratedSnippets between the existing schemaExpansion JSDoc and its declaration, which orphaned the schemaExpansion documentation (TypeScript binds JSDoc to the next declaration; stacked JSDoc blocks only attach the second). Move hideGeneratedSnippets to the end of the api block so each field keeps its own documentation. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 6c1c5fd commit e9825c8

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • packages/docusaurus-theme-openapi-docs/src

packages/docusaurus-theme-openapi-docs/src/types.d.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ export interface ThemeConfig {
4242
* `{ default: 1 }` alone to auto-expand the first level on every page
4343
* without rendering the depth control.
4444
*/
45-
/**
46-
* When `true`, suppresses Postman-generated code snippets (HTTP, cURL,
47-
* language variants, etc.) on a per-operation, per-language basis whenever
48-
* `x-codeSamples` are provided for that language on that operation.
49-
* Languages without custom samples render generated snippets normally.
50-
* Defaults to `false` (both custom and generated snippets render side by
51-
* side, preserving existing behavior).
52-
*/
53-
hideGeneratedSnippets?: boolean;
5445
schemaExpansion?: {
5546
/** Render an interactive depth control next to each schema header so readers can change the depth at view time. Defaults to `false`. */
5647
enabled?: boolean;
@@ -61,6 +52,15 @@ export interface ThemeConfig {
6152
/** Persist the reader's selected depth in `localStorage`. Only meaningful when `enabled` is `true`; defaults to `true` in that case. */
6253
persist?: boolean;
6354
};
55+
/**
56+
* When `true`, suppresses Postman-generated code snippets (HTTP, cURL,
57+
* language variants, etc.) on a per-operation, per-language basis whenever
58+
* `x-codeSamples` are provided for that language on that operation.
59+
* Languages without custom samples render generated snippets normally.
60+
* Defaults to `false` (both custom and generated snippets render side by
61+
* side, preserving existing behavior).
62+
*/
63+
hideGeneratedSnippets?: boolean;
6464
};
6565
}
6666

0 commit comments

Comments
 (0)