Skip to content

fix: enforce resolution/size constraint on output schema for non-mp3 …#121

Merged
Kratos2k7 merged 1 commit into
mainfrom
fix/output-dimensions-constraint
Jun 9, 2026
Merged

fix: enforce resolution/size constraint on output schema for non-mp3 …#121
Kratos2k7 merged 1 commit into
mainfrom
fix/output-dimensions-constraint

Conversation

@Kratos2k7

Copy link
Copy Markdown
Collaborator

…formats

Adds a superRefine check to outputOutputSchema via fix-discriminator.cjs so that any generated @shotstack/schemas release rejects renders that specify neither resolution nor a complete size (width + height). mp3 format is exempt. Mirrors the defence-in-depth guard already added to shotstack-edit-api's zodValidator.js.

Fixes the root cause of the engine SIGABRT triggered by payloads like { format: "mp4", aspectRatio: "9:16" } passing API validation with no output dimensions.

…formats

Adds a superRefine check to outputOutputSchema via fix-discriminator.cjs
so that any generated @shotstack/schemas release rejects renders that
specify neither resolution nor a complete size (width + height).
mp3 format is exempt. Mirrors the defence-in-depth guard already added
to shotstack-edit-api's zodValidator.js.

Fixes the root cause of the engine SIGABRT triggered by payloads like
{ format: "mp4", aspectRatio: "9:16" } passing API validation with no
output dimensions.
@Kratos2k7 Kratos2k7 merged commit 0b02b50 into main Jun 9, 2026
1 check passed
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants