-
-
Notifications
You must be signed in to change notification settings - Fork 69.4k
[Bug] discovery.wideArea.domain config rejected by strict Zod schema #35614
Copy link
Copy link
Closed
Description
Bug Description
The wideArea schema in zod-schema.ts uses .strict() but is missing the domain field. This field is:
- Defined in the TypeScript type at
types.gateway.ts:21asdomain?: string - Used across the codebase:
cli/gateway-cli/register.ts:216— gateway registrationcli/dns-cli.ts:127,131,161— DNS CLI commandsgateway/server-discovery-runtime.ts:66,79— runtime discoverygateway/server.impl.ts:609— server implementationcommands/gateway-status.ts:42— status commandcommands/onboard-remote.ts:85— remote onboarding
Because the schema is .strict(), users setting discovery.wideArea.domain get a validation error, blocking unicast DNS-SD configuration.
Steps to Reproduce
discovery:
wideArea:
enabled: true
domain: "openclaw.internal"This config is rejected by validateConfigObject().
Root Cause
Type/schema drift: domain was added to the type and runtime code but not to the Zod schema.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.