mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-28 05:48:14 +00:00
fix: 🐛 修复数据源引擎请求处理器映射严格模式下被过滤的问题
This commit is contained in:
parent
8a3a0b8241
commit
75626d877d
@ -118,6 +118,10 @@ const VALID_ENGINE_OPTIONS = {
|
|||||||
type: 'array',
|
type: 'array',
|
||||||
description: '自定义 simulatorUrl 的地址',
|
description: '自定义 simulatorUrl 的地址',
|
||||||
},
|
},
|
||||||
|
requestHandlersMap: {
|
||||||
|
type: 'object',
|
||||||
|
description: '数据源引擎的请求处理器映射',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
export interface EngineOptions {
|
export interface EngineOptions {
|
||||||
/**
|
/**
|
||||||
@ -227,6 +231,9 @@ export interface EngineOptions {
|
|||||||
constants?: Record<string, any>;
|
constants?: Record<string, any>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据源引擎的请求处理器映射
|
||||||
|
*/
|
||||||
requestHandlersMap: RequestHandlersMap;
|
requestHandlersMap: RequestHandlersMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -316,7 +323,7 @@ export class EngineConfig {
|
|||||||
if (isValidKey(key)) {
|
if (isValidKey(key)) {
|
||||||
this.set(key, engineOptions[key]);
|
this.set(key, engineOptions[key]);
|
||||||
} else {
|
} else {
|
||||||
logger.warn(`failed to config ${key} to engineConfig, only predefined options can be set under strict mode, predefined options: ${VALID_ENGINE_OPTIONS}`);
|
logger.warn(`failed to config ${key} to engineConfig, only predefined options can be set under strict mode, predefined options: `, VALID_ENGINE_OPTIONS);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user