diff --git a/schemas/videoasset.yaml b/schemas/videoasset.yaml index 84ac542..72dfcbd 100644 --- a/schemas/videoasset.yaml +++ b/schemas/videoasset.yaml @@ -40,16 +40,6 @@ type: string minLength: 1 example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/input-image.jpg - seed: - deprecated: true - description: >- - **Deprecated — use `inputSrc`.** Legacy alias for the image-to-video - input image URL, accepted and normalised to `inputSrc` on ingest. The - name is misleading — industry-wide `seed` means an integer RNG sampling - seed — and will be removed in a future major version. - type: string - minLength: 1 - example: https://s3-ap-northeast-1.amazonaws.com/my-bucket/seed-image.jpg model: description: >- The generation model to use when `prompt` is set (e.g. `luma-ray-3`, diff --git a/tests/smoke.cjs b/tests/smoke.cjs index fc36af3..968a9ee 100644 --- a/tests/smoke.cjs +++ b/tests/smoke.cjs @@ -218,13 +218,14 @@ async function run() { assert.strictEqual(result.model, "luma-ray-3"); }); - check("Parse videoAsset with deprecated seed alias (still accepted for back-compat)", () => { - const result = zodCjs.videoAssetSchema.parse({ - type: "video", - prompt: "Camera pans right", - seed: "https://example.com/seed.jpg", - }); - assert.strictEqual(result.seed, "https://example.com/seed.jpg"); + check("REJECT videoAsset with removed `seed` field (use inputSrc instead)", () => { + assert.throws(() => + zodCjs.videoAssetSchema.parse({ + type: "video", + prompt: "Camera pans right", + seed: "https://example.com/seed.jpg", + }) + ); }); check("Parse audioAsset with prompt + voice", () => { @@ -321,7 +322,7 @@ async function run() { ); }); - check("REJECT video with deprecated seed but no src and no prompt (alias is a modifier)", () => { + check("REJECT video with removed `seed` field and no src/prompt (seed no longer recognized)", () => { assert.throws(() => zodCjs.videoAssetSchema.parse({ type: "video", seed: "https://example.com/seed.jpg" }) );