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

Configurable Link serialization #229

Open
ghost opened this issue Dec 16, 2019 · 0 comments
Open

Configurable Link serialization #229

ghost opened this issue Dec 16, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 16, 2019

The fix for #182 introduced a simpler, spec compliant way to serialize Link when meta is null. Unfortunately this is also a breaking change with no clean way to override it. Consumers of JSONAPI-Converter can rev their APIs to document this difference, but still need to support older API versions that returned the previous format.

It's possible to override this new behavior by implementing JacksonAnnotationIntrospector and forcing use of the standard serialization mechanism for Link. That said, such a solution isn't particularly clean and couples the consumer to implementation details of this library.

I propose formally supporting this by adding a configuration option for the Link serialization format.

Thanks.

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

0 participants