Skip to content

Add optional minScore parameter to RecaptchaV2EnterpriseRequest - #54

Merged
grk717 merged 3 commits into
mainfrom
sdk-bot/fe45da5d-add-optional-minscore-parameter-to-recap-feb4
Nov 5, 2026
Merged

grk717 merged 3 commits into
mainfrom
sdk-bot/fe45da5d-add-optional-minscore-parameter-to-recap-feb4

Conversation

@capmonster-sdk-bot

Copy link
Copy Markdown

Context

reCAPTCHA v2 Enterprise accepts an optional minScore parameter. Docs: https://docs.capmonster.cloud/docs/captchas/recaptcha-v2-enterprise-task.txt

minScore (double, optional): Can have a value from 0.1 to 0.9

Changes

  • capmonstercloud_client/requests/RecaptchaV2EnterpiseRequest.py: new optional minScore: Optional[float] with a range validator (0.1-0.9, same as RecaptchaV3ProxylessRequest); sent in getTaskDict() only when set; docstring and return type updated.
  • test/recaptchaV2Enterprise_test.py: new tests (minScore in task dict, omitted when unset, out-of-range values rejected).
  • capmonstercloud_client/version.txt: 4.3.3 -> 4.3.4.

Testing

New unittest file added; backward compatible (parameter is optional).

Open questions

None.


Prepared automatically by the SDK update bot. Please review before merging.

@grk717
grk717 self-requested a review November 5, 2026 10:45
@grk717
grk717 merged commit 0de783a into main Nov 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants