Skip to content

Fix response for unresolvable empty paginators#38

Merged
brunogaspar merged 1 commit into
mainfrom
fix-empty-paginator-resource-resolve
May 25, 2026
Merged

Fix response for unresolvable empty paginators#38
brunogaspar merged 1 commit into
mainfrom
fix-empty-paginator-resource-resolve

Conversation

@brunogaspar
Copy link
Copy Markdown
Member

@brunogaspar brunogaspar commented May 25, 2026

When a paginator has no items and the resource can't be auto-resolved, return a proper JSON:API structure with empty data array, pagination meta, and links instead of dumping the raw paginator object.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag @codesmith with what you need. Autofix is disabled.

When a paginator has no items and the resource can't be auto-resolved,
return a proper JSON:API structure with empty data array, pagination
meta, and links instead of dumping the raw paginator object.
@brunogaspar brunogaspar self-assigned this May 25, 2026
@brunogaspar brunogaspar added the changelog:fixed Bug fixes label May 25, 2026
@brunogaspar brunogaspar merged commit dbb88e5 into main May 25, 2026
4 checks passed
@brunogaspar brunogaspar deleted the fix-empty-paginator-resource-resolve branch May 25, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant