Skip to content

Commit

Permalink
Add scroll_back_algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
krasun committed May 7, 2024
1 parent ca5c4f6 commit 8c184f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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.27",
"version": "1.0.28",
"description": "Validation schemes for the ScreenshotOne API requests.",
"repository": {
"type": "git",
Expand Down
5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,11 @@ const animateScheme = withHtmlOrUrlOrMarkdownRequired
scroll_complete: Joi.boolean().default(true),
scroll_back_after_duration: Joi.number().integer().optional(),
scroll_back: Joi.boolean().default(true),
scroll_back_algorithm: Joi.string()
.trim()
.lowercase()
.valid("once", "repeat")
.default("once"),

scroll_stop_after_duration: Joi.when("scroll_back", {
is: false,
Expand Down

0 comments on commit 8c184f4

Please sign in to comment.