camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From panzerhans <>
Subject Private variables not being inspected camel-swagger
Date Tue, 21 Oct 2014 07:12:44 GMT
I I expose this class:

@ApiModel(value = "MyDTO ", description = "My data transporter")
public class MyDTO {
    @ApiModelProperty(value = "This is a private field")
    private String myPrivateField;

Swagger will not document the class as JSON. I am unsure if this is
happening in camel-core, or if this is a problem with Swagger. However, the
behaviour is inconsistent with e.g. Gson, which handles private fields just
fine. Instead it relies on annotations for how the class variables should be

Is there anywhere that I can change the configuration to have this private
property inspected by camel-swagger?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message