Repository navigation
Commit efc0b4a
committed
fix(spec): root the remaining validation.zod.ts example predicates at record. and un-invert the cross_field describe example
Example 2 (`discount > (amount * 0.40)`) and the header script example
(`discount_percent > 0.40`) named bare fields, which the evaluator does not
bind. The CrossFieldValidationSchema.condition description gave
`record.end_date > record.start_date`, which under TRUE-is-violation refuses
every valid end-after-start range; it now gives the violation,
`record.end_date < record.start_date`, and says a TRUE condition fails
validation. Documentation text only.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QcAS3qiYYZNezaxZxaUdMV1 parent ec694f0 commit efc0b4a
2 files changed
Lines changed: 8 additions & 5 deletions
File tree
- .changeset
- packages/spec/src/data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | | - | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
294 | | - | |
| 294 | + | |
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| |||
0 commit comments