@@ -7,13 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator;
77import com.fasterxml.jackson.annotation.JsonValue;
88import com.fasterxml.jackson.annotation.JsonTypeName;
99
10+ { {#withXml} }
11+ import { {javaxPackage} }.xml.bind.annotation.XmlElement;
12+ import { {javaxPackage} }.xml.bind.annotation.XmlRootElement;
13+ import { {javaxPackage} }.xml.bind.annotation.XmlAccessType;
14+ import { {javaxPackage} }.xml.bind.annotation.XmlAccessorType;
15+ import { {javaxPackage} }.xml.bind.annotation.XmlType;
16+ import { {javaxPackage} }.xml.bind.annotation.XmlEnum;
17+ import { {javaxPackage} }.xml.bind.annotation.XmlEnumValue;
18+ { {/withXml} }
19+
1020{ {#discriminator} }{ {> typeInfoAnnotation} }{ {/discriminator} }{ {#description} }/**
1121 * { {.} }
1222 **/{ {/description} }
1323{ {#useSwaggerAnnotations} }{ {#description} }@ApiModel(description = "{ {{.} }}"){ {/description} }{ {/useSwaggerAnnotations} }{ {#useMicroProfileOpenAPIAnnotations} }
1424@org.eclipse.microprofile.openapi.annotations.media.Schema({ {#title} }title="{ {{.} }}", { {/title} }{ {#description} }description="{ {{.} }}"{ {/description} }{ {^description} }description=""{ {/description} }){ {/useMicroProfileOpenAPIAnnotations} }
1525@JsonTypeName("{ {name} }")
16- { {> generatedAnnotation} }{ {> additionalModelTypeAnnotations} }
26+ { {> generatedAnnotation} }{ {> additionalModelTypeAnnotations} }{ { > xmlPojoAnnotation } }
1727{ {#vendorExtensions.x-class-extra-annotation} }
1828{ {{vendorExtensions.x-class-extra-annotation} }}
1929{ {/vendorExtensions.x-class-extra-annotation} }
@@ -92,6 +102,9 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens
92102 return this;
93103 }
94104
105+ { {#withXml} }
106+ @XmlElement(name="{ {baseName} }"{ {#required} }, required = { {required} }{ {/required} })
107+ { {/withXml} }
95108 { {#vendorExtensions.x-extra-annotation} }{ {{vendorExtensions.x-extra-annotation} }}{ {/vendorExtensions.x-extra-annotation} }{ {#useSwaggerAnnotations} }
96109 @ApiModelProperty({ {#example} }example = "{ {{.} }}", { {/example} }{ {#required} }required = { {required} }, { {/required} }value = "{ {{description} }}"){ {/useSwaggerAnnotations} }{ {#useMicroProfileOpenAPIAnnotations} }
97110 @org.eclipse.microprofile.openapi.annotations.media.Schema({ {#example} }example = "{ {{.} }}", { {/example} }{ {#required} }required = { {required} }, { {/required} }description = "{ {{description} }}"){ {/useMicroProfileOpenAPIAnnotations} }
0 commit comments