Skip to content

Add cursor validation for paginated routes with clean InvalidCursor 4… - #656

Open
adewaleomolara522-coder wants to merge 1 commit into
stellarkit-lab-devtools:mainfrom
adewaleomolara522-coder:validate-cursor-clean-errors
Open

Add cursor validation for paginated routes with clean InvalidCursor 4…#656
adewaleomolara522-coder wants to merge 1 commit into
stellarkit-lab-devtools:mainfrom
adewaleomolara522-coder:validate-cursor-clean-errors

Conversation

@adewaleomolara522-coder

Copy link
Copy Markdown

Description

Added stricter cursor validation for paginated endpoints.

  • validateCursor() now rejects empty, whitespace-only, non-string, and invalid-character cursor values.
  • Invalid cursors return clean 400 responses with:
    • type: "InvalidCursor"
    • message: "The provided cursor value is invalid."
    • suggestion: "Use the cursor returned in the previous response."
  • Updated central error handling and tests to cover the new validation behavior.

Branch: validate-cursor-clean-errors

closes #613

@drips-wave

drips-wave Bot commented Jul 31, 2026

Copy link
Copy Markdown

@adewaleomolara522-coder Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Validate cursor param across all paginated endpoints before hitting Horizon

1 participant