fix(validate): allow LITANY/THEOTOKION prayer markers
Both node types are bare classification markers with no payload (content lives in TEXT/HEADER nodes, matching the TROPARION/KONTAKION convention already in the allowlist). Clears the 13 pre-existing validate errors; no data or rendering change.
This commit is contained in:
1 parent
d0affe4e83
commit
4f9f55b3f3
1 file changed
+4
-2
@@ -152,8 +152,10 @@ class Validator {
|
||||
continue;
|
||||
}
|
||||
const obj = node as Record<string, unknown>;
|
||||
if (!obj.type || !['TEXT', 'HEADER', 'TROPARION', 'KONTAKION'].includes(obj.type as string)) {
|
||||
this.addError(path, `[${i}].type`, 'Type must be TEXT or HEADER');
|
||||
// LITANY/THEOTOKION are bare classification markers (no payload):
|
||||
// TROPARION/KONTAKION have the same convention, content is TEXT/HEADER.
|
||||
if (!obj.type || !['TEXT', 'HEADER', 'TROPARION', 'KONTAKION', 'LITANY', 'THEOTOKION'].includes(obj.type as string)) {
|
||||
this.addError(path, `[${i}].type`, 'Type must be TEXT, HEADER, TROPARION, KONTAKION, LITANY or THEOTOKION');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user