fix(sla): validate Business Hours timezone as an IANA name (MAPPS-240) #239
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-240-business-hours-timezone-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Business Hours form already validates name + schedule JSON, but the timezone was sent unchecked, so a typo only failed as an opaque 422. Validate a non-empty timezone with chrono_tz before submit and reject inline; empty still defaults to UTC.
(Note: the original MAPPS-240 also alleged the schedule JSON was unvalidated - that part is already handled in handle_save, so this PR is scoped to the timezone gap only.)
Verified in-container (just pre-commit): fmt + clippy + wasm check + unit tests green.
Fixes MAPPS-240.