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

a problem we have when updating the version of Katharsis from 2.8.2 to 3.0.2 #451

Open
tangchengn opened this issue Sep 12, 2017 · 0 comments

Comments

@tangchengn
Copy link

In the latest released version 3.0.2, there is a configuration in class "io.katharsis.resource.Resource" as below:
@JsonInclude(Include.NON_EMPTY)
private Map<String, JsonNode> attributes = new HashMap<>();

And our problem is:

when the value of a field needed in DTO is null, we hope that the field can be invisible, so the configuration we did in

class "KatharsisFeature" as we did before as below is no longer effective.

(objectMapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)
.configure(SerializationFeature.WRITE_NULL_MAP_VALUES,false)
.setSerializationInclusion(JsonInclude.Include.NON_NULL)

So, do you have any advice? looking forward to your reply.

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

1 participant