Skip to content

ParseOptions

Defined in: src/core.ts:598

Options for parse / parseAll. Every field is optional; an omitted or undefined value leaves the parse behaviour byte-for-byte the default.

optional optimizations?: ParseOptimizations

Defined in: src/core.ts:611

Opt-in performance tradeoffs — see ParseOptimizations.


optional strict?: boolean

Defined in: src/core.ts:609

By default (false, or omitted) lightning-yaml is LENIENT: it tolerates some spec-invalid block indentation — today, a tab used to indent a block sequence/mapping (spec §6.1) — rather than rejecting it. Pass true to restore full YAML 1.2.2 rejection of that input. Lenient parsing never changes how a valid document is interpreted — it only accepts some malformed input the spec calls an error; strict: true never accepts anything the default rejects. Default: false (lenient).