Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

fix: remove duplicate validator names#37

Merged
azeriker merged 1 commit into
ZennoLab:mainfrom
kalelmartinho:fix-duplicate-validator-names
Jul 30, 2025
Merged

fix: remove duplicate validator names#37
azeriker merged 1 commit into
ZennoLab:mainfrom
kalelmartinho:fix-duplicate-validator-names

Conversation

@kalelmartinho

Copy link
Copy Markdown
Contributor

The HcaptchaComplexImageTaskRequest class had three validator methods with identical names (validate_urls_array), causing Pydantic to override the earlier validators with the later ones. Additionally, all validators contained nearly identical validation logic that was duplicated across methods.

Changes Made

Consolidated duplicate validation logic into a single reusable method
Fixed validator naming conflicts - no more overrides
Maintained all existing validation rules with field-specific parameters

@grk717
grk717 self-requested a review July 30, 2025 11:34
@azeriker
azeriker merged commit 14d2d71 into ZennoLab:main Jul 30, 2025
0 of 4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants