1
1
{ {#useSwaggerAnnotations} }
2
2
import io.swagger.annotations.*;
3
3
{ {/useSwaggerAnnotations} }
4
+ { {#withXml} }
5
+ import io.swagger.annotations.ApiModelProperty;
6
+ import javax.xml.bind.annotation.XmlElement;
7
+ import javax.xml.bind.annotation.XmlRootElement;
8
+ import javax.xml.bind.annotation.XmlAccessType;
9
+ import javax.xml.bind.annotation.XmlAccessorType;
10
+ import javax.xml.bind.annotation.XmlType;
11
+ import javax.xml.bind.annotation.XmlEnum;
12
+ import javax.xml.bind.annotation.XmlEnumValue;
13
+ { {#jackson} }
14
+ import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
15
+ { {/jackson} }
16
+ { {/withXml} }
4
17
import java.util.Objects;
5
18
import com.fasterxml.jackson.annotation.JsonProperty;
6
19
import com.fasterxml.jackson.annotation.JsonCreator;
@@ -10,11 +23,11 @@ import com.fasterxml.jackson.annotation.JsonValue;
10
23
* { {description} }
11
24
**/{ {/description} }
12
25
{ {#useSwaggerAnnotations} }{ {#description} }@ApiModel(description = "{ {{description} }}"){ {/description} }{ {/useSwaggerAnnotations} }
13
- { {> generatedAnnotation} }{ {> additionalModelTypeAnnotations} }public class { {classname} } { {#parent} }extends { {{parent} }}{ {/parent} } { {#serializableModel} }implements Serializable{ {/serializableModel} } {
26
+ { {> generatedAnnotation} }{ {> additionalModelTypeAnnotations} }{ { > xmlAnnotation } } public class { {classname} } { {#parent} }extends { {{parent} }}{ {/parent} } { {#serializableModel} }implements Serializable{ {/serializableModel} } {
14
27
{{#vars} }{ {#isEnum} }{ {^isContainer} }
15
28
16
29
{ {> enumClass} }{ {/isContainer} }{ {#isContainer} }{ {#mostInnerItems} }
17
-
30
+
18
31
{ {> enumClass} }{ {/mostInnerItems} }{ {/isContainer} }{ {/isEnum} }
19
32
private { {#useBeanValidation} }@Valid { {/useBeanValidation} }{ {{datatypeWithEnum} }} { {name} }{ {#defaultValue} } = { {{.} }}{ {/defaultValue} };{ {/vars} }
20
33
0 commit comments