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:
catarrh committed 2026-10-04 17:26:06 +03:00
1 parent d0affe4e83
commit 4f9f55b3f3
1 file changed
+4 -2
+4 -2
View File
@@ -152,8 +152,10 @@ class Validator {
continue; continue;
} }
const obj = node as Record<string, unknown>; const obj = node as Record<string, unknown>;
if (!obj.type || !['TEXT', 'HEADER', 'TROPARION', 'KONTAKION'].includes(obj.type as string)) { // LITANY/THEOTOKION are bare classification markers (no payload):
this.addError(path, `[${i}].type`, 'Type must be TEXT or HEADER'); // 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');
} }
} }
} }