-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
add test for a Java Record with an Optional param #5336
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
base: 3.x
Are you sure you want to change the base?
Conversation
fails, but |
In your examples it will fail too if the json is:
|
@wendigo Seems like changing to builder.changeDefaultPropertyInclusion(f -> JsonInclude.Value.construct(JsonInclude.Include.ALWAYS, JsonInclude.Include.ALWAYS)); Could you try? If so, something have changed wrt |
This passes on Jackson 2.x:
|
still fails |
@wendigo I've updated the test to include some broken cases based on your suggestion. They are annotated with |
Same challenge as #5335, I think -- need to separate serialization and deserialization aspects. While related for end-to-end usage, handling internally fully decoupled and need to understand and process separately (isolate ser vs deser processing, invariants, behavior). note: I realize test methods are appropriately split, but the issue doesn't seem to be. |
Uh oh!
There was an error while loading. Please reload this page.