Skip to content

fix: respect zero and reject negative pagination limits - #501

Open
Shubham-Padkonde wants to merge 1 commit into
HubSpot:masterfrom
Shubham-Padkonde:fix/validate-pagination-limits
Open

Shubham-Padkonde wants to merge 1 commit into
HubSpot:masterfrom
Shubham-Padkonde:fix/validate-pagination-limits

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

get_all(limit=0) currently treats zero as an unlimited query, potentially fetching every CRM record. Negative limits are also forwarded to the API.

Return an empty list without making a request for zero, and reject negative limits locally. Positive and unlimited pagination retain their existing behavior. The README documents these boundaries.

Validation: both new boundary regressions fail before the fix; all 106 unit tests pass afterward, including bounded and unlimited multi-page retrieval. Live API integration tests were not run.

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