Skip to Content

Template Reference

VSL ยท Vasco Specification Language

Version 1.1 Active

Check your template

Find likely variable, type, and field-name mistakes before generating a document.

Sign in to check a template.

Generic context

These variables are available for every templatable DSL.

VariableContents
rootThe parsed entry object (TestSuite).
elementsAll named elements across grammar types.
by_typeNamed elements grouped by their exact grammar type.
by_idLookup from an element name to its element.
schema_versionTemplate-context schema version, currently 1.0.

Uniform element aliases

Every named element keeps its raw fields and gains these aliases.

AliasMeaning
idThe raw name value.
titleThe configured friendly title, falling back to name.
kindThe exact Langium AST type.

Template Profile aliases

Friendly names are resolved at render time and do not alter the grammar inventory.

This DSL does not define additional friendly aliases.

Named types

These exact names are valid keys in by_type.

1 types
Matches exact grammar type and field names.
TestCase Link
FieldShape
expectation contained โ†’ Expectation
name string
steps contained โ†’ TestStep list optional
{% for item in by_type["TestCase"] %}
{{ item.id }} โ€” {{ item.title }}
{% endfor %}
Embedded types 3

These types are not indexed in by_type. Reach them through fields on their parent objects.

Expectation

Link
result

TestStep

Link
descriptionkind

TestSuite

Link
tests