mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
OpenAPI: Fix header name in code samples
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-openapi': patch
|
||||
---
|
||||
|
||||
Fix header name in code samples
|
||||
@@ -76,7 +76,7 @@ export function generateSample(
|
||||
const prefix = getSecurityPrefix(security);
|
||||
|
||||
params.push({
|
||||
name: 'Authorization',
|
||||
name: security.type === 'apiKey' ? security.name : 'Authorization',
|
||||
schema: {
|
||||
type: 'string',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user