Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1E3817926 for ; Tue, 21 Oct 2014 07:13:31 +0000 (UTC) Received: (qmail 44324 invoked by uid 500); 21 Oct 2014 07:13:30 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 44273 invoked by uid 500); 21 Oct 2014 07:13:30 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 44244 invoked by uid 99); 21 Oct 2014 07:13:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2014 07:13:30 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2014 07:13:25 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XgTca-0005mw-2U for users@camel.apache.org; Tue, 21 Oct 2014 00:12:44 -0700 Date: Tue, 21 Oct 2014 00:12:44 -0700 (PDT) From: panzerhans To: users@camel.apache.org Message-ID: <1413875564068-5757833.post@n5.nabble.com> Subject: Private variables not being inspected camel-swagger MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.