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

Remove usage of deprecated property naming strategy CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Adam-Jamka
Copy link

@Adam-Jamka Adam-Jamka commented Oct 7, 2024

You are using jackson-databind in version 2.9.10.4 which has PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES deprecated and it's set to SNAKE_CASE anyway. So there is no need in com.taboola.rest.api.internal.serialization.SerializationMapperCreator#createObjectMapper to check if the SNAKE_CASE should be used - in the current implementation the PropertyNamingStrategy is always set to SNAKE_CASE. Maybe even the whole field com.taboola.rest.api.internal.config.SerializationConfig#shouldUseSnakeCase could be deleted but I'm not sure so I didn't do that.

The problem is that this field (PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES) has been removed in a newer version of jackson-databind library which we are using in our project.

After applying this change there is need to bump version of api-java-client-core in the backstage-api-java-client and release new version.

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.

1 participant