You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the docs are probably still lacking OR I just didnt read them well enough; More likely there is no spring specific docs anyways...
Just posting this issue to help people get started with this with a spring boot app that handles webhooks.
importcom.fasterxml.jackson.databind.Module; // Need this b/c by default java will want to use the java.lang.Module.importcom.spotify.github.jackson.GithubApiModule;
@ConfigurationpublicclassConfiguration {
/** * Need to register this bean so that isodates based through the webhook are understood by jackson. */@BeanpublicModulegithubApiModule() {
returnnewGithubApiModule();
}
}
spring:
jackson:
property-naming-strategy: SNAKE_CASE # by default jackson wants LOWER_CAMEL_CASE, the events are not configured to deser using snakecase. This configures jackson to expect snakecase instead of camelcase.
These are 2 kind of "gotchas" that we ran into while trying to use this project for webhooks.
The text was updated successfully, but these errors were encountered:
I think the docs are probably still lacking OR I just didnt read them well enough; More likely there is no spring specific docs anyways...
Just posting this issue to help people get started with this with a spring boot app that handles webhooks.
These are 2 kind of "gotchas" that we ran into while trying to use this project for webhooks.
The text was updated successfully, but these errors were encountered: