Skip to content

Commit

Permalink
add omit_background option
Browse files Browse the repository at this point in the history
  • Loading branch information
krasun committed Feb 27, 2024
1 parent 426974d commit 4542326
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "screenshotone-validations",
"homepage": "https://screenshotone.com",
"version": "1.0.19",
"version": "1.0.20",
"description": "Validation schemes for the ScreenshotOne API requests.",
"repository": {
"type": "git",
Expand Down
8 changes: 7 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,12 @@ const animateScheme = withHtmlOrUrlOrMarkdownRequired
.default("mp4"),
duration: Joi.number().min(1).max(30).default(5),

omit_background: Joi.when("format", {
is: Joi.valid("mov"),
then: Joi.boolean().default(false),
otherwise: Joi.forbidden(),
}),

width: Joi.number().integer().optional(),
height: Joi.number().integer().optional(),
aspect_ratio: Joi.string()
Expand Down Expand Up @@ -412,7 +418,7 @@ const animateScheme = withHtmlOrUrlOrMarkdownRequired
then: Joi.number().integer().optional(),
otherwise: Joi.forbidden(),
}),

scroll_easing: Joi.string()
.trim()
.lowercase()
Expand Down

0 comments on commit 4542326

Please sign in to comment.