I have a Jersey jax-rs application that i have configured to generate a
swagger document for as described
in
https://github.com/swagger-api/swagger-core/wiki/swagger-core-jersey-2.x-project-setup
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
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.