fix(core): Use explicit types in configs to ensure valid decorator metadata (#10433)
This commit is contained in:
committed by
GitHub
parent
0dc3e99b26
commit
2043daa257
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user