Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Jun 15, 2024

Conversation

EvaristeGalois11
Copy link
Contributor

@EvaristeGalois11 EvaristeGalois11 commented Jun 15, 2024

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
Contributor

@EvaristeGalois11,

Thank you for your contribution to the project!

@bnasslahsen bnasslahsen merged commit 3ae1ecf into springdoc:main Jun 15, 2024
@EvaristeGalois11 EvaristeGalois11 deleted the page-serialization branch June 15, 2024 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants