From 4f9f55b3f32aa92efd2ae87ca47e08ce41ad4327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Sun, 4 Oct 2026 17:26:06 +0300 Subject: [PATCH] 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. --- scripts/validate-data.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/validate-data.ts b/scripts/validate-data.ts index c5de4d0..d0ec7c7 100644 --- a/scripts/validate-data.ts +++ b/scripts/validate-data.ts @@ -152,8 +152,10 @@ class Validator { continue; } const obj = node as Record; - 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'); } } }