public class User {
@JsonProperty("userId")
private Integer id;
public Integer getId() { return id; }
public void setId(Integer id) { this.id = id; }
...
}
The field is not renamed in the swagger doc.
In com/wordnik/swagger/converter/ModelPropertyParser.scala
try {
val fieldAnnotations = getDeclaredField(this.cls, name).getAnnotations()
var propAnnoOutput = processAnnotations(name, fieldAnnotations)
var propPosition = propAnnoOutput("position").asInstanceOf[Int]
The propAnnoOutput from the field is not used to update the name.