Closed StefanSchubert closed 1 year ago
NONSENCE! Sorry for bothering. The problem sat as usual in front of the keyboard. I hat also another ConfigClass in my project, which I introduced to add an Intercepter to restTemplates for being able, do monitor outgoing traffic via micrometer/prometheus. This one also defined a RestTemplate Bean which the classloader picks up first! No wonder that my Jackson Config doesn't seem to have an effect.
Hi there,
I'm using the module (version 0.2.6) in combination with the openapi-generator plugin.
However I seem to have problems to map json responses from the called system (via restTemplate), which does not provide the JsonNullable json representation but the plain attributes and crashes when trying to map a String to JsonNullable on the generated DTO.
My jackson mapper doesn't seem to be convinced to do such a mapping, this is the config I'm using
and this is the JsonNullabeDeserializer:
Having this setup I encounter the following error:
To me it looks like the Deserializer isn't called at all. Hm, I set a breakpoint into the firstline of the provided deserializer and it doesn't stop. So it might be more a configuration issue of the Jackson2ObjektMapperBuilder....