Commit cd0fd41
committed
fix(discord-ts): accept offset timestamps in generated zod validation
Configure the zod plugin with dates.offset so it emits
z.iso.datetime({ offset: true }), allowing Discord's timestamps with
timezone offsets (e.g. +00:00) to pass validation, not just `Z`.1 parent 9f396d2 commit cd0fd41
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
37 | 44 | | |
38 | 45 | | |
0 commit comments