fix: 约束调试探针 Kafka 隔离标识
This commit is contained in:
@@ -1319,6 +1319,8 @@ function webProbeWorkbenchKafkaDebugReplayConfig(value: unknown, path: string):
|
||||
const completionTimeoutMs = numberField(raw, "completionTimeoutMs", path);
|
||||
if (!/^[A-Za-z0-9._-]+$/u.test(topic)) throw new Error(`${path}.topic must use Kafka topic identifier characters`);
|
||||
if (!/^[A-Za-z0-9._-]+$/u.test(groupPrefix)) throw new Error(`${path}.groupPrefix must use Kafka consumer group identifier characters`);
|
||||
if (!/(?:^|[.-])debug(?:[.-]|$)/u.test(topic)) throw new Error(`${path}.topic must identify an isolated debug topic`);
|
||||
if (!/(?:^|[.-])debug(?:[.-]|$)/u.test(groupPrefix)) throw new Error(`${path}.groupPrefix must identify an isolated debug consumer group`);
|
||||
if (!Number.isInteger(completionTimeoutMs) || completionTimeoutMs < 1000 || completionTimeoutMs > 120000) {
|
||||
throw new Error(`${path}.completionTimeoutMs must be an integer between 1000 and 120000`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user