Hi,

   It seems that in the last week the codegen functionality for springboot 
applications appears to no longer produce the @JsonProperty attribute in 
the model classes meaning that any fields defined using the editor suddenly 
appear as camelcase when the application is generated.

  To reproduce use the editor to create the default example and look in the 
definitions at the product object. You will see product_id & currency_code 
and a number of other fields defined in snake case.  The live rendering 
view of the model all looks correct but when you generate the springboot 
application it now producing everything with camel case fieldnames like 
productId & currencyCode.   

Example from application generated last week

  @ApiModelProperty(value = "")
>   @JsonProperty("line_1")
>   public String getLine1() {
>     return line1;
>   }
>   public void setLine1(String line1) {
>     this.line1 = line1;
>   }


This weeks generated model code

  @ApiModelProperty(value = "")
>   public String getLine1() {
>     return line1;
>   }
>   public void setLine1(String line1) {
>     this.line1 = line1;
>   }



  Has this been make configurable somewhere or is this a bug ?


Cheers
Mark

-- 
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.

Reply via email to