fix: update shiki dependency and enhance OpenAPI security scheme

- Updated shiki package version from 1.22.2 to 3.19.0 in package.json and pnpm-lock.yaml.
- Modified OpenAPI security scheme to include 'x-default' for the API key in the fix-openapi script and openapi.json.
This commit is contained in:
Mauricio Siu
2025-12-07 06:08:53 -06:00
parent baaf062975
commit 418c7a2d33
4 changed files with 14 additions and 14 deletions

View File

@@ -26,15 +26,14 @@ try {
}
// Add x-api-key scheme
if (!openapi.components.securitySchemes['x-api-key']) {
openapi.components.securitySchemes['x-api-key'] = {
type: 'apiKey',
in: 'header',
name: 'x-api-key',
description: 'API key authentication. Use YOUR-GENERATED-API-KEY'
};
securityFixed = true;
}
openapi.components.securitySchemes['x-api-key'] = {
type: 'apiKey',
in: 'header',
name: 'x-api-key',
description: 'API key authentication. Use YOUR-GENERATED-API-KEY',
'x-default': 'your-key'
};
securityFixed = true;
// Replace global security from Authorization to x-api-key
if (openapi.security) {