mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:50:42 +00:00
fix(config): accept optional Codex search location
This commit is contained in:
@@ -286,13 +286,13 @@ export const ToolPolicySchema = ToolPolicyBaseSchema.superRefine((value, ctx) =>
|
||||
}
|
||||
}).optional();
|
||||
|
||||
const TrimmedOptionalConfigStringSchema = z.preprocess((value) => {
|
||||
if (typeof value !== "string") {
|
||||
return value;
|
||||
}
|
||||
const trimmed = value.trim();
|
||||
return trimmed.length > 0 ? trimmed : undefined;
|
||||
}, z.string().optional());
|
||||
const TrimmedOptionalConfigStringSchema = z
|
||||
.string()
|
||||
.transform((value) => {
|
||||
const trimmed = value.trim();
|
||||
return trimmed.length > 0 ? trimmed : undefined;
|
||||
})
|
||||
.optional();
|
||||
|
||||
const CodexAllowedDomainsSchema = z
|
||||
.array(z.string())
|
||||
|
||||
Reference in New Issue
Block a user