<Kotlin - Dynamic PropNamingStrategies using Jacks...
# stackoverflow
r
Kotlin - Dynamic PropNamingStrategies using Jackson on REST response API I have some endpoints that will be versioned, and in the new version it will change the json fields returned from CamelCase to SnakeCase. Today the approach to serialize the response in CamelCase is, we use Jackson, so in each response DTO class we put the @ JsonNaming(PropertyNamingStrategies.UpperCamelCaseStrategy::class) annotation. I'm looking for some way to keep the same DTO for both versions of the endpoint (cause there is no field change, just the camel and snake variation) but manage...