fix(core): Use explicit types in configs to ensure valid decorator metadata (#10433)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-08-15 13:58:20 +02:00
committed by GitHub
parent 0dc3e99b26
commit 2043daa257
17 changed files with 109 additions and 103 deletions

View File

@@ -4,13 +4,13 @@ import { Config, Env } from '../decorators';
export class PublicApiConfig {
/** Whether to disable the Public API */
@Env('N8N_PUBLIC_API_DISABLED')
disabled = false;
disabled: boolean = false;
/** Path segment for the Public API */
@Env('N8N_PUBLIC_API_ENDPOINT')
path = 'api';
path: string = 'api';
/** Whether to disable the Swagger UI for the Public API */
@Env('N8N_PUBLIC_API_SWAGGERUI_DISABLED')
swaggerUiDisabled = false;
swaggerUiDisabled: boolean = false;
}