@@ -1801,3 +1801,69 @@ public class JobAcknowledge {
18011801}
18021802"
18031803`;
1804+
1805+ exports[`template integration tests using the generator should return object when avro union type is used specifying many possible types 1`] = `
1806+ "package com.example.api.jobOrder;
1807+
1808+
1809+ import com.fasterxml.jackson.annotation.JsonInclude;
1810+
1811+
1812+
1813+ @JsonInclude(JsonInclude.Include.NON_NULL)
1814+ public class JobOrder {
1815+
1816+ public JobOrder () {
1817+ }
1818+
1819+ public JobOrder (
1820+ String jobOrderId ,
1821+ Object jobOrderDescription ,
1822+ Object jobOrderLongDescription ) {
1823+ this.jobOrderId = jobOrderId;
1824+ this.jobOrderDescription = jobOrderDescription;
1825+ this.jobOrderLongDescription = jobOrderLongDescription;
1826+ }
1827+
1828+ private String jobOrderId ;
1829+ private Object jobOrderDescription ;
1830+ private Object jobOrderLongDescription ;
1831+ public String getJobOrderId () {
1832+ return jobOrderId;
1833+ }
1834+
1835+ public JobOrder setJobOrderId (String jobOrderId ) {
1836+ this.jobOrderId = jobOrderId;
1837+ return this;
1838+ }
1839+
1840+
1841+ public Object getJobOrderDescription () {
1842+ return jobOrderDescription;
1843+ }
1844+
1845+ public JobOrder setJobOrderDescription (Object jobOrderDescription ) {
1846+ this.jobOrderDescription = jobOrderDescription;
1847+ return this;
1848+ }
1849+
1850+
1851+ public Object getJobOrderLongDescription () {
1852+ return jobOrderLongDescription;
1853+ }
1854+
1855+ public JobOrder setJobOrderLongDescription (Object jobOrderLongDescription ) {
1856+ this.jobOrderLongDescription = jobOrderLongDescription;
1857+ return this;
1858+ }
1859+
1860+ public String toString () {
1861+ return \\"JobOrder [\\"
1862+ + \\" jobOrderId: \\" + jobOrderId
1863+ + \\" jobOrderDescription: \\ " + jobOrderDescription .toString ()
1864+ + \\" jobOrderLongDescription: \\ " + jobOrderLongDescription .toString ()
1865+ + \\" ]\\ " ;
1866+ }
1867+ }
1868+ "
1869+ `;
0 commit comments