You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide a SlicedModel DTO to render stable JSON representations of Slice #3516
org.springframework.data.web.PagedModel was introduced in 3.3 via #3024 as a middle ground between serializing PageImpl directly and adopting Spring HATEOAS. There is currently no equivalent for Slice.
Problem
The rationale in #3024 applies equally to slices. SliceImpl is a domain type, so its JSON representation carries the same stability risk that motivated PagedModel — but returning a Slice from a controller today leaves three options, none good:
Serialize SliceImpl as-is, with the same instability PagedModel exists to avoid (and without the PlainPageSerializationWarning that flags the problem for pages).
Activity