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

Jackson Serialization doesn't work on java.time #921

Open
SZanko opened this issue Aug 27, 2024 · 1 comment
Open

Jackson Serialization doesn't work on java.time #921

SZanko opened this issue Aug 27, 2024 · 1 comment

Comments

@SZanko
Copy link

SZanko commented Aug 27, 2024

Expected Behavior

Micronaut does serialize ExampleDto correctly with values from request

Actual Behaviour

An instance of ExampleDto is created but the values of the field is null

logs:

Received Tour: null, Duration: null

Steps To Reproduce

  1. gradle run
  2. run
curl -X POST http://localhost:8080/example \
-H "Content-Type: application/json" \
-d '{
  "name": "City Tour",
  "duration": "PT2H30M"
}'

Environment Information

  • OS: archlinux
  • jdk version: #openjdk 17.0.12 2024-07-16
    OpenJDK Runtime Environment (build 17.0.12+7)
    OpenJDK 64-Bit Server VM (build 17.0.12+7, mixed mode, sharing)

Example Application

https://github.com/SZanko/MicronautJavaTimeSerializationTest

Version

4.6.0

@dstepanov
Copy link
Contributor

Please include a test in your project that reproduces the problem

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

No branches or pull requests

2 participants