Skip to content

fix: use stable PagedModel DTO for Spring Data page serialization#29

Merged
tsekovTriesCoding merged 3 commits intomainfrom
fix/page-serialization-via-dto
Mar 18, 2026
Merged

fix: use stable PagedModel DTO for Spring Data page serialization#29
tsekovTriesCoding merged 3 commits intomainfrom
fix/page-serialization-via-dto

Conversation

@tsekovTriesCoding
Copy link
Owner

Add @EnableSpringDataWebSupport(pageSerializationMode = VIA_DTO) to PaymentService, WalletService, NotificationService, and UserService application classes. This replaces the unstable PageImpl JSON contract with Spring's PagedModel DTO, nesting page metadata under a 'page' key.

Update all frontend page response interfaces, component consumers, and test mocks to read from the nested page object.

Add @EnableSpringDataWebSupport(pageSerializationMode = VIA_DTO) to
PaymentService, WalletService, NotificationService, and UserService
application classes. This replaces the unstable PageImpl JSON contract
with Spring's PagedModel DTO, nesting page metadata under a 'page' key.

Update all frontend page response interfaces, component consumers,
and test mocks to read from the nested page object.
Change $.totalElements -> $.page.totalElements and
$.totalPages -> $.page.totalPages in integration tests for
user-service, payment-service, wallet-service, and
notification-service.
@tsekovTriesCoding tsekovTriesCoding merged commit d41fb09 into main Mar 18, 2026
7 checks passed
@tsekovTriesCoding tsekovTriesCoding deleted the fix/page-serialization-via-dto branch March 18, 2026 15:40
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.

1 participant