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

fix: validate after limit assignment in create_block #2310

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

thelonejordan
Copy link

@thelonejordan thelonejordan commented Dec 22, 2024

Please describe the purpose of this pull request.
While creating a block here, the limit is assigned later which leads to the pydantic validator here failing with exception as it validates against the default limit of 5000 instead of what is being passed by the arguments.

Screenshot 2024-12-23 at 2 32 59 AM

How to test
How can we test your PR during review? What commands should we run? What outcomes should we expect?

Have you tested this PR?
Have you tested the latest commit on the PR? If so please provide outputs from your tests.

Related issues or PRs
Please link any related GitHub issues or PRs.

Is your PR over 500 lines of code?
If so, please break up your PR into multiple smaller PRs so that we can review them quickly, or provide justification for its length.

Additional context
Add any other context or screenshots about the PR here.

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