bigIntegerWarnings
bigIntegerWarnings(
text):ValidationWarning[]
Defined in: packages/core/src/parser/big-integers.ts:66
A warning for every integer in YAML or JSON text that reads as a number
with fewer digits, at its key (at the element, inside a list), with the
dotted path findings use (layers.0.source.data.features.0.id).
The parse never throws: text that isn’t YAML gives the integers it could
read, or none. TOML text isn’t read here; parseDocumentText already
warns for it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text | string |
Returns
Section titled “Returns”Example
Section titled “Example”bigIntegerWarnings("id: 12345678901234567890\n");// [{ path: "id", line: 1, column: 1,// message: '12345678901234567890 is beyond the integers a number keeps exactly (2^53), …' }]