Commit 8d97719
fix: resolve CRM example compile failure caused by Zod double-parse on form.sections.columns
The `defineStack()` in @objectstack/spec transforms `columns: '2'` (string)
to `columns: 2` (number) via ZodPipe. When `objectstack compile` CLI then
runs safeParse again on the already-transformed data, the number `2` fails
the string enum validation expecting "1"|"2"|"3"|"4".
Fix: pass `{ strict: false }` to `defineStack()` in the CRM example config,
deferring validation to the compile CLI's single safeParse pass.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent e27a3cf commit 8d97719
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
| 770 | + | |
0 commit comments