mirror of
https://github.com/Dokploy/website.git
synced 2026-07-08 07:25:25 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user