Skip to content

Replace Page schema with PagedModel when pageSerializationMode is set to VIA_DTO - #2626

Merged
bnasslahsen merged 3 commits into
springdoc:mainfrom
EvaristeGalois11:page-serialization
Jun 15, 2024
Merged

bnasslahsen merged 3 commits into
springdoc:mainfrom
EvaristeGalois11:page-serialization

Conversation

@EvaristeGalois11

@EvaristeGalois11 EvaristeGalois11 commented Jun 15, 2024 •

Copy link
Copy Markdown
Contributor

Hi, in the last update Spring Data introduced an automatic way of converting Page to PagedModel, more info here and here.

With this PR Springdoc should be able to recognize the configuration @EnableSpringDataWebSupport(pageSerializationMode = EnableSpringDataWebSupport.PageSerializationMode.VIA_DTO) and act accordingly.

I had to bump the version of the spring parent to 3.3.0 because I needed the new class PagedModel. If you prefer to not clutter this PR with this upgrade I will split it off to a separate PR.

Close #2625

Bye!

@bnasslahsen

Copy link
Copy Markdown
Collaborator

@EvaristeGalois11,

Thank you for your contribution to the project!

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.

support @EnableSpringDataWebSupport(pageSerializationMode = EnableSpringDataWebSupport.PageSerializationMode.VIA_DTO)

2 participants