We are using jackson to convert our entity and configured it to use SNAKE_CASE property naming strategy. When running swagger its is picking the default naming strategy and putting those names into the swagger document using camel case. I have tried configuring io.swagger.util.Json.mapper()
Json.mapper().setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE);
but that ObjectMapper appears to be used globally as not only does it fix the propertynames for my rest entity, the properties in the swagger document also get converted eg 'operationId' on my operations gets changed to operation_id, which is then breaking the swagger-codegen which is experting normal camel case.
Any way i can custom the names generated for properties on my entities? Obviously don't want to go through adding annotations on all my entities but configure swagger to default to snake case.
thanks
Andrew