Skip to content

Commit

Permalink
Add scroll navigation options
Browse files Browse the repository at this point in the history
  • Loading branch information
krasun committed May 16, 2024
1 parent 10c45a5 commit b5eab0b
Show file tree
Hide file tree
Showing 2 changed files with 5 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.29",
"version": "1.0.30",
"description": "Validation schemes for the ScreenshotOne API requests.",
"repository": {
"type": "git",
Expand Down
4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ const animateScheme = withHtmlOrUrlOrMarkdownRequired
otherwise: Joi.forbidden(),
}),

scroll_navigate_after: Joi.number().integer().optional(),
scroll_navigate_to_url: Joi.string().trim().custom(validUri).optional(),
scroll_navigate_hint_links: Joi.array().items(Joi.string().trim()).optional(),

clip_x: Joi.when("format", {
is: Joi.valid("gif"),
then: Joi.number().integer().optional(),
Expand Down

0 comments on commit b5eab0b

Please sign in to comment.