Skip to content

Interface: ValidateLimits ​

Size limits for validate(). Exceeding any of them rejects the document.

Properties ​

PropertyTypeDescription
maxBytes?numberMaximum size of the serialized input in bytes (UTF-8). Default 1 000 000.
maxDepth?numberMaximum nesting depth. Default 32.
maxNodes?numberMaximum number of nodes and marks. Default 50 000.