Skip to content

Fix(SCIMMY.Messages.ListResponse): handle startIndex exceeding total resources#102

Open
morzzz007 wants to merge 1 commit intoscimmyjs:mainfrom
morzzz007:main
Open

Fix(SCIMMY.Messages.ListResponse): handle startIndex exceeding total resources#102
morzzz007 wants to merge 1 commit intoscimmyjs:mainfrom
morzzz007:main

Conversation

@morzzz007
Copy link
Copy Markdown

Summary

Fixes a bug in SCIMMY.Messages.ListResponse where pagination returns incorrect results when startIndex exceeds the total number of resources.

Per SCIM RFC 7644, when startIndex is beyond the total results, the response should return an empty Resources array while preserving the correct totalResults value.

Changes

  • Added logic to detect when startIndex exceeds the complete (non-pre-paginated) result set
  • When detected, returns empty Resources array while maintaining correct metadata
  • Added test case to verify the edge case behavior

…resources

Per SCIM RFC 7644, when startIndex is beyond the total number of results,
the response should return an empty Resources array while preserving the
correct totalResults value. Added logic to detect this case and return an
empty array when startIndex exceeds the complete (non-pre-paginated) result set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant