You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/mshell.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -590,6 +590,7 @@ Shape validation allows extra keys, requires all non-optional fields, and valida
590
590
A `none` conforms to `Maybe[T]` for every `T`; quotation types are checked by kind only (signatures are not verified at runtime).
591
591
Named types must be declared before the cast runs.
592
592
Note that `parseJson` produces a `float` for every JSON number, so validate JSON numbers as `float`, not `int`.
593
+
Validation depth is limited to 1024 nested levels; exceeding it (a cyclic value, a cyclic `type` declaration, or absurdly deep data) fails the script with a clear error rather than producing `none`.
593
594
594
595
Dictionary types are split into homogeneous dictionaries and shapes.
595
596
A homogeneous dictionary is for dynamic keys where every value has the same type.
A <code>none</code> conforms to <code>Maybe[T]</code> for every <code>T</code>; a <code>just</code> validates its inner value.
190
190
Quotation types are checked by kind only — signatures are not verified at runtime.
191
191
A named type must have been declared before the cast runs.
192
+
Validation depth is limited to 1024 nested levels (structural nesting, named-type expansion, and union dispatch each consume one); exceeding the limit fails the script with a clear error rather than producing <code>none</code>, which turns a cyclic value or a cyclic <code>type</code> declaration into a diagnosable failure.
192
193
</p>
193
194
194
195
<h1id="type-system-dictionaries">Dictionaries <aclass="section-link" href="#type-system-dictionaries" aria-label="Permalink">§</a><aclass="back-to-top" href="#type-system-top">Back to top</a></h1>
0 commit comments