camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From panzerhans <espen+ca...@tjonneland.no>
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
exposed. 

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



--
View this message in context: http://camel.465427.n5.nabble.com/Private-variables-not-being-inspected-camel-swagger-tp5757833.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message