Skip to content

Conversation

mdehsan873
Copy link
Collaborator

No description provided.

Copy link

github-actions bot commented Sep 3, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@@ -21,7 +21,8 @@ class ScrapeRequest(BaseModel):
},
description="Optional headers to send with the request, including cookies "
"and user agent",
)
),
mock: bool = Field(default=False, description="Whether to use mock mode for the request")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Trailing Comma Causes Pydantic Field Configuration Failure

A trailing comma after the Field(...) definition for the headers field turns its assigned value into a 1-tuple (FieldInfo,). This prevents Pydantic from correctly configuring the field, leading to lost metadata and an invalid default, which can cause validation and serialization issues when headers is omitted.

Fix in Cursor Fix in Web

@VinciGit00 VinciGit00 merged commit ab0d17a into main Sep 3, 2025
6 of 10 checks passed
@VinciGit00 VinciGit00 deleted the added-mock-and-plain-text-param branch September 3, 2025 07:05
Copy link

github-actions bot commented Sep 3, 2025

🎉 This PR is included in version 1.24.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants