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 |
|---|---|---|
| isValid | boolean | True when the content parses cleanly; false when the parser rejected it. |
True when the content parses cleanly; false when the parser rejected it. | ||
| error | string | 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. | ||
| line | integer | 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. | ||
| column | integer | 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
}