swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

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

Open whatwoot opened this issue 1 year ago • 0 comments

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 avatar Sep 11 '24 03:09 whatwoot