Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove min_length constraint of 1 for task.url #759

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Aug 29, 2024

🚀 This description was created by Ellipsis for commit e96172f

Summary:

Removed min_length=1 constraint from url field in TaskRequest class in skyvern/forge/sdk/schemas/tasks.py, allowing it to accept empty strings.

Key points:

  • Removed min_length=1 constraint from url field in TaskRequest class in skyvern/forge/sdk/schemas/tasks.py.
  • Allows url field to accept empty strings or be unset, increasing flexibility.

Generated with ❤️ by ellipsis.dev

@wintonzheng wintonzheng merged commit 11811e7 into main Aug 29, 2024
2 checks passed
@wintonzheng wintonzheng deleted the shu/remove_min_len_constraint_task.url branch August 29, 2024 19:25
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to e96172f in 9 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_bO4mpooSfmQDDXjP


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -30,7 +30,6 @@ class TaskRequest(BaseModel):
)
url: str = Field(
Copy link
Contributor

Choose a reason for hiding this comment

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

Removing min_length=1 allows empty strings as valid URLs, which might not be intended. Consider validating URLs to ensure they are not empty.

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.

1 participant