Skip to content

Commit

Permalink
Allow to specify the full page algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
krasun committed Oct 29, 2024
1 parent d68a4b1 commit b4895f3
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.54",
"version": "1.0.55",
"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 @@ -95,6 +95,11 @@ const screenshotScheme = {
then: Joi.number().integer().positive().optional(),
otherwise: Joi.forbidden(),
}),
full_page_algorithm: Joi.when("full_page", {
is: true,
then: Joi.string().valid("by_sections", "default").default("default"),
otherwise: Joi.forbidden(),
}),

capture_beyond_viewport: Joi.boolean().default(Joi.ref("full_page")),

Expand Down

0 comments on commit b4895f3

Please sign in to comment.