We're updating the issue view to help you get more done.Learn more

Add VTPL validity rule for templates - consistency of languages for flattening.

Currently, if a template and all referenced archetypes (i.e. slot fillers or external references) validate individually, the template validates. However, if any of the filler archetypes does not have the original_language of the root template, either as an original language or in its translations, flattening and serialisation will fail, because the serialiser will use a single language throughout the structure.

Status

Assignee

Thomas Beale

Reporter

Thomas Beale

Raised By

Thomas Beale

Impact Analysis

No impact on current archetypes or tools.

Analyst

Thomas Beale

Change Description

AOM spec: add validity rule for TEMPLATE type, that says that all referenced archetypes, including indirectly, must contain the root template's original_language among their languages. ADL WB: Add validation code to AOM phase 3 validator to traverse template inclusion structure and ensure all archetypes have root parent's original_language available.

Time estimate

4h

Components

Fix versions

Affects versions

ADL 2.0

Due date

2018/01/31

Priority

Minor