Skip to content

Add @JsonAnySetter method to slack Event class#160

Open
daring2 wants to merge 1 commit intorampatra:masterfrom
daring2:master
Open

Add @JsonAnySetter method to slack Event class#160
daring2 wants to merge 1 commit intorampatra:masterfrom
daring2:master

Conversation

@daring2
Copy link

@daring2 daring2 commented Oct 27, 2019

Add @JsonAnySetter method to slack Event class to keep all data from slack events.

I think it can be useful in some cases. In my case the slack bot receives messages from Google Calendar application. These messages don't contain user/userId attributes, but include bot_profile object with user-realted attributes.

/**
* Created by ramswaroop on 10/06/2016.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this? I think it's better to ignore null values.

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

Successfully merging this pull request may close these issues.

2 participants