Commit b480011
docs(data-modeling): document build-time expression validation guardrails (#3201)
The formula/flow guardrail series (#1928) added build-time checks that were
never documented. Add a "Build-time validation" section to the formulas guide
covering: qualify field references (bare-ref → null), field existence, unknown
functions, and the text/boolean-in-arithmetic type-soundness warning — with
their severities (error vs advisory warning), the note that integer-literal
arithmetic (amount / 100) works at runtime, and how flow conditions differ
(bare fields, did-you-mean typo warnings). Add a companion note + cross-link to
the validation guide.
Docs-only; verified against the shipped behavior in @objectstack/formula and
@objectstack/lint.
Claude-Session: https://claude.ai/code/session_01Hnji7EEYR2mGt6pY53a8Bm
Co-authored-by: Claude <noreply@anthropic.com>1 parent 668dd17 commit b480011
2 files changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
199 | 230 | | |
200 | 231 | | |
201 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
340 | 346 | | |
341 | 347 | | |
342 | 348 | | |
| |||
0 commit comments