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

Spring Data REST force using of jackson serialization #2439

Open
xanscale opened this issue Dec 10, 2024 · 2 comments
Open

Spring Data REST force using of jackson serialization #2439

xanscale opened this issue Dec 10, 2024 · 2 comments
Assignees
Labels
status: waiting-for-triage An issue we've not yet triaged

Comments

@xanscale
Copy link

there is no way to change json serialization, like kotlinx-serialization or gson or others.

inside RepositoryRestMvcConfiguration jackson seams hardcoded and no way to change.

https://docs.spring.io/spring-framework/reference/languages/kotlin/web.html#kotlin-multiplatform-serialization

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 10, 2024
@mp911de
Copy link
Member

mp911de commented Dec 10, 2024

Exactly. Spring Data REST is built on top of Jackson, and we use Jackson in various areas. It would require a significant rework to support other serialization mechanisms.

@xanscale
Copy link
Author

It's a very unexpected answer :)
in my mind data REST is on top of RestController, something like autogenerated standard RestController

at least it should be specified in the documentation

I'm making rest api with data REST and kotlin, but Jackson and Kotlin are not good friends

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

4 participants