Renaming properties with @JsonProperty doesn't work
Hi,
I'm using swagger 1.3, and when I rename a property with Jackson's @JsonProperty, it doesn't seem to be picked up by swagger-core.
i.e.
@JsonProperty("newName")
private String name = "joe";
Swagger is still using the old name.
I wrote a fix in my own repo in the meantime:
jknova/swagger-core@85ee010ced2d18a030b4f9f6f58e36cd8198c50b
I am having the same issue with @XmlElement annotations, swagger seems to be ignoring and still using the old name, Looking at your changes it appears to be the same bug.
Hi, it's not really a bug, the @JsonProperty annotations are simply not supported in the model processor. I'll look at the enhancement from @jknova shortly
in next version, full jackson support is enabled.