Parsing Jackson Annotations with Swagger
By default, Swagger parses class data members to document the objects used as parameters or returned by a given web service. If you're using Jackson, Jackson's annotations provide a much more accurate description of the API.
Does anyone know of a (easy) way to get Swagger to parse Jackson annotations. Perhaps an overridden parser?
+3
source to share
2 answers
Not sure if this helps, but Jackson 2.1 and later expose a POJO structure, as seen by Jackson himself ( ObjectMapper.acceptJsonFormatVisitor
), which can be used to create various kinds of artifacts. For example, I wrote an Avro schema generator, for example (as part of the Jackson Avro module )
+2
source to share