Skip to content

fix: correct swapped JSON tags on PaginationLinks Prev/Next fields#615

Open
SAY-5 wants to merge 1 commit into
stellar:developfrom
SAY-5:fix/pagination-links-swapped-json-tags
Open

fix: correct swapped JSON tags on PaginationLinks Prev/Next fields#615
SAY-5 wants to merge 1 commit into
stellar:developfrom
SAY-5:fix/pagination-links-swapped-json-tags

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 12, 2026

Copy link
Copy Markdown

Fixes #593.

internal/entities/pagination.go had the Prev and Next field tags
swapped, so any code that populated PaginationLinks by Go field name
emitted cursors under the wrong JSON key. The struct is currently unused
in this repository, so swapping the tags to match the field names has no
wire-format impact today.

Added a round-trip JSON test in internal/entities/pagination_test.go
that fails on the previous (swapped) tags and passes on the fix.

@aristidesstaffieri aristidesstaffieri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@SAY-5 thanks for the contribution!

@SAY-5

SAY-5 commented May 25, 2026

Copy link
Copy Markdown
Author

The e2e failure is caused by a missing Stellar testnet account (account not found: entry not found / GCEKH6XGQAKU7CYM7YIP3RNSAU55TILHLLHVOLN3HAIJTWI72VCPV4U7) and a HostError(Contract, #6) from the testnet environment. These are infrastructure issues unrelated to this pagination tag fix. All other checks (build, test, check, CodeQL) pass.

@SAY-5

SAY-5 commented Jun 2, 2026

Copy link
Copy Markdown
Author

Anything else needed from my side 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.

2 participants