Skip to content

Commit

Permalink
Force Jackson to use the real names of the properties of the Data typ…
Browse files Browse the repository at this point in the history
…e defined in the YAML
  • Loading branch information
gustavoapaz committed Oct 16, 2017
1 parent 48acbdc commit d9eb9c7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;

{{#withXml}}
@XmlAccessorType(XmlAccessType.FIELD)
Expand Down Expand Up @@ -46,6 +47,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {
{{/maximum}}
* @return {{name}}
**/
@JsonProperty("{{name}}")
{{#vendorExtensions.extraAnnotation}}
{{{vendorExtensions.extraAnnotation}}}
{{/vendorExtensions.extraAnnotation}}
Expand Down

0 comments on commit d9eb9c7

Please sign in to comment.