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

Java template uses an removed method(DeserializationContext.mappingException(String)) #12461

Open
whatwoot opened this issue Sep 11, 2024 · 0 comments

Comments

@whatwoot
Copy link

In modules/swagger-codegen/src/main/resources/javaSpring/CustomInstantDeserializer.mustache:Line 203:

throw context.mappingException("Expected type float, integer, or string.");

The com.fasterxml.jackson.databind.DeserializationContext.mappingException(String) is an expired method and has been romoved in jackson-databind:2.16.0.(Swagger-codegen depends on jackson-databind-2.17.0 & CVE-2023-35116 Vulnerabilitiy reported in jackson-databind up to 2.16)

Thanks!

@whatwoot whatwoot changed the title Java template uses an expired method(com.fasterxml.jackson.databind.DeserializationContext.mappingException(String)) Java template uses an removed method(DeserializationContext.mappingException(String)) Sep 11, 2024
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