load default examples without lazy loading

This commit is contained in:
Fuma Nama
2025-08-13 17:06:55 +08:00
parent 45a648cbfe
commit 8e3c07e914
2 changed files with 6 additions and 27 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'fumadocs-openapi': patch
---
load default examples without lazy loading
@@ -12,33 +12,7 @@ import {
type RawRequestData,
type RequestData,
} from '@/requests/_shared';
const defaultSamples: CodeSample[] = [
{
label: 'cURL',
lang: 'bash',
},
{
label: 'JavaScript',
lang: 'js',
},
{
label: 'Go',
lang: 'go',
},
{
label: 'Python',
lang: 'python',
},
{
label: 'Java',
lang: 'java',
},
{
label: 'C#',
lang: 'csharp',
},
];
import { defaultSamples } from '@/requests';
interface CustomProperty {
'x-codeSamples'?: CodeSample[];