mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-28 15:47:16 +00:00
* fix(ui): handle empty strings with minLength constraint in config save Fixes #85831 When saving config in Control UI, required string fields with minLength constraint (e.g., z.string().min(1)) were sent as empty strings instead of being unset. This prevented schema defaults from applying. Solution: coerce empty strings with minLength > 0 to undefined, allowing schema defaults to take effect during validation. Added 5 unit tests covering edge cases. * fix(types): add minLength and maxLength to JsonSchema type