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

chore: make startCursor and endCursor optional #266

Merged
merged 11 commits into from
Jun 20, 2023
Merged

Conversation

mkurapov
Copy link
Contributor

@mkurapov mkurapov commented Jun 6, 2023

Changes proposed in this pull request

  • Making startCursor and endCursor optional in the resource server spec for pagination responses.
  • Adding CI check for missing generated types in the open-payments client

Context

When there are no results, it makes sense for startCursor and endCursor to be nullable:

This is actually causing an error in Rafiki when making Open Payments requests to list incoming/outgoing payments, and there are no results.

See the new changes here: https://open-payments-integration.readme.io/v1.1/reference/list-incoming-payments

@changeset-bot
Copy link

changeset-bot bot commented Jun 6, 2023

🦋 Changeset detected

Latest commit: 1f5f909

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@interledger/open-payments Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mkurapov mkurapov marked this pull request as ready for review June 6, 2023 15:54
@mkurapov
Copy link
Contributor Author

mkurapov commented Jun 6, 2023

@sabineschaller I'd like to use this new spec in Rafiki, should I bump the version and use the updated one in Rafiki?

@mkurapov mkurapov requested a review from BlairCurrey June 9, 2023 11:32
@mkurapov mkurapov merged commit 97ad3e9 into main Jun 20, 2023
@mkurapov mkurapov deleted the 191/mk/optional-cursors branch June 20, 2023 11:52
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.

Make startCursor/endCursor optional
2 participants