mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 08:47:27 +00:00
fix(config): add missing comment field to BindingsSchema
Strict validation (added in d1e9490f9) rejects the legitimate 'comment'
field on bindings. This field is used for annotations in config files.
Changes:
- BindingsSchema: added comment: z.string().optional()
- AgentBinding type: added comment?: string
Fixes #23385
This commit is contained in:
committed by
Peter Steinberger
parent
2739328508
commit
56f01bc493
@@ -72,6 +72,7 @@ export type AgentsConfig = {
|
||||
|
||||
export type AgentBinding = {
|
||||
agentId: string;
|
||||
comment?: string;
|
||||
match: {
|
||||
channel: string;
|
||||
accountId?: string;
|
||||
|
||||
@@ -16,6 +16,7 @@ export const BindingsSchema = z
|
||||
z
|
||||
.object({
|
||||
agentId: z.string(),
|
||||
comment: z.string().optional(),
|
||||
match: z
|
||||
.object({
|
||||
channel: z.string(),
|
||||
|
||||
Reference in New Issue
Block a user