From 2cf9199a15ba4dab20bc8d85deab2b23f5a689e7 Mon Sep 17 00:00:00 2001 From: Kratos2k7 Date: Wed, 8 Apr 2026 07:31:32 +0500 Subject: [PATCH] fix: replaced validation text for rich-caption --- scripts/fix-discriminator.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fix-discriminator.cjs b/scripts/fix-discriminator.cjs index 35b00a9..0715750 100644 --- a/scripts/fix-discriminator.cjs +++ b/scripts/fix-discriminator.cjs @@ -359,7 +359,7 @@ function addRichCaptionSrcValidation(code, zPrefix) { ' if (mediaExts.some((ext) => pathname.endsWith(ext))) {\n' + ' ctx.addIssue({\n' + ' code: ' + zPrefix + '.ZodIssueCode.custom,\n' + - ' message: "src must point to a subtitle file (SRT or VTT). Audio and video files are not supported as src. Use the words array to provide word timings directly.",\n' + + ' message: "Caption src must be an SRT or VTT subtitle file. To generate captions from a media asset, use an alias reference (e.g. \\"alias://my-clip\\") instead of a direct URL. See: https://shotstack.io/docs/guide/architecting-an-application/rich-captions/",\n' + ' path: ["src"],\n' + ' });\n' + ' }\n' +