Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

@JsonUnwrapped is ignored #15

Open
Brutus5000 opened this issue Mar 14, 2022 · 0 comments
Open

@JsonUnwrapped is ignored #15

Brutus5000 opened this issue Mar 14, 2022 · 0 comments

Comments

@Brutus5000
Copy link

@JsonUnwrapped is a Jackson annotation that "flattens" the attributes of an inner variable and puts all key/values into the current level of the json body.

The @JsonUnwrapped payload is not taken into account by JsonApiary. I tested and debugged around. The ObjectMapper treats it correctly (even with Jsonapiary module loaded) if not wrapped in a JsonApiEnvelope. But as soon as an object gets wrapped in JsonApiEnvelop the unwrapping no longer happens.

Unfortunately this goes beyond my knowledge of Jackson. My gut feeling after debugging tells me that JsonApiary code calls a layer of Jackson where the unwrapping already should have happened and that the JsonApiaryModule calls the wrong method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant