API Docs / Schemas / TemplateValidationResultDto

TemplateValidationResultDto

Result of validating a Liquid template fragment. Reports whether the content parses
under the same engine used at render time, plus the location of the first error.

Properties

Name Type Description
isValidboolean

True when the content parses cleanly; false when the parser rejected it.

True when the content parses cleanly; false when the parser rejected it.

errorstring

The parser's error message when invalid (e.g. "Invalid 'if' tag at (10:9)"); null when valid.

The parser's error message when invalid (e.g. "Invalid 'if' tag at (10:9)"); null when valid.

lineinteger

1-based line of the first error when the parser reports one; null otherwise.

1-based line of the first error when the parser reports one; null otherwise.

columninteger

1-based column of the first error when the parser reports one; null otherwise.

1-based column of the first error when the parser reports one; null otherwise.

JSON Example

{
  "isValid": false,
  "error": "string",
  "line": 0,
  "column": 0
}

Used By Operations