micronaut-projects / micronaut-jackson-xml

Micronaut Integration with Jackson XML
Apache License 2.0
6 stars 3 forks source link

Error Starting server #407

Open sidhant92 opened 1 day ago

sidhant92 commented 1 day ago

Issue description

My server API's use JSON.

I am using Micronaut HTTP Client which needs to send and receive XML to communicate to other services.

After adding this module on startup I am getting the following error:

Message: Error resolving property value [jackson.property-naming-strategy]. Property doesn't exist

Path Taken: new XmlStreamToObjectConverter(XmlMapper xmlMapper,ConversionService conversionService) --> new XmlStreamToObjectConverter([XmlMapper xmlMapper],ConversionService conversionService) --> XmlMapperFactory.serializers --> new OptionalValuesSerializer([JacksonConfiguration jacksonConfiguration]) --> JacksonConfiguration.setPropertyNamingStrategy([PropertyNamingStrategy propertyNamingStrategy])

jackson: property-naming-strategy: SNAKE_CASE

After removing this config it works fine. I dont want to put casing on each and every object.