diff --git a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache index a8f437f5f23a..5c36825ab9b2 100644 --- a/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaJaxRS/spec/pojo.mustache @@ -34,9 +34,9 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens {{/vendorExtensions.x-field-extra-annotation}} private {{#isContainer}}{{#useBeanValidation}}@Valid {{/useBeanValidation}}{{/isContainer}}{{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; {{/vars}} + {{#generateBuilders}} {{^additionalProperties}} - protected {{classname}}({{classname}}Builder b) { {{#parent}} super(b); @@ -46,11 +46,33 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens {{/vars}} } - public {{classname}}() { - } {{/additionalProperties}} {{/generateBuilders}} + public {{classname}}() { + } + + {{#hasRequired}} + @JsonCreator + public {{classname}}( + {{#requiredVars}} + @JsonProperty(required = {{required}}, value = "{{baseName}}") {{>beanValidatedType}} {{name}}{{^-last}},{{/-last}} + {{/requiredVars}} + ) { + {{#parent}} + super( + {{#parentRequiredVars}} + {{name}}{{^-last}},{{/-last}} + {{/parentRequiredVars}} + ); + {{/parent}} + {{#vars}} + {{#required}} + this.{{name}} = {{name}}; + {{/required}} + {{/vars}} + } + {{/hasRequired}} {{#vars}} /** {{#description}} @@ -71,12 +93,12 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens {{#vendorExtensions.x-extra-annotation}}{{{vendorExtensions.x-extra-annotation}}}{{/vendorExtensions.x-extra-annotation}}{{#useSwaggerAnnotations}} @ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}"){{/useSwaggerAnnotations}}{{#useMicroProfileOpenAPIAnnotations}} @org.eclipse.microprofile.openapi.annotations.media.Schema({{#example}}example = "{{{.}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}description = "{{{description}}}"){{/useMicroProfileOpenAPIAnnotations}} - @JsonProperty("{{baseName}}") + @JsonProperty({{#required}}required = {{required}}, value = {{/required}}"{{baseName}}") {{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}}public {{>beanValidatedType}} {{getter}}() { return {{name}}; } - @JsonProperty("{{baseName}}") + @JsonProperty({{#required}}required = {{required}}, value = {{/required}}"{{baseName}}") {{#vendorExtensions.x-setter-extra-annotation}}{{{vendorExtensions.x-setter-extra-annotation}}} {{/vendorExtensions.x-setter-extra-annotation}}public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { this.{{name}} = {{name}}; diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 682ed5dab22f..dbab262c5d50 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesAnyType extends HashMap implements Serializable { private String name; + public AdditionalPropertiesAnyType() { + } + /** **/ public AdditionalPropertiesAnyType name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 0d2035127285..583a71348d06 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -23,6 +23,9 @@ public class AdditionalPropertiesArray extends HashMap implements Serializable { private String name; + public AdditionalPropertiesArray() { + } + /** **/ public AdditionalPropertiesArray name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index f0ae250352c7..19d8b76bfe7e 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesBoolean extends HashMap implements Serializable { private String name; + public AdditionalPropertiesBoolean() { + } + /** **/ public AdditionalPropertiesBoolean name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index fbe27e942ed5..dc771487ee16 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -34,6 +34,9 @@ public class AdditionalPropertiesClass implements Serializable { private Object anytype2; private Object anytype3; + public AdditionalPropertiesClass() { + } + /** **/ public AdditionalPropertiesClass mapString(Map mapString) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index ae73a1116cfd..98fe181659c2 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesInteger extends HashMap implements Serializable { private String name; + public AdditionalPropertiesInteger() { + } + /** **/ public AdditionalPropertiesInteger name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index 6fde1b5984c3..ab6bb29ab7ac 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -23,6 +23,9 @@ public class AdditionalPropertiesNumber extends HashMap implements Serializable { private String name; + public AdditionalPropertiesNumber() { + } + /** **/ public AdditionalPropertiesNumber name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index 5d1f9790aa27..ff6cf71ce20a 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesObject extends HashMap implements Serializable { private String name; + public AdditionalPropertiesObject() { + } + /** **/ public AdditionalPropertiesObject name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index da5e1ce3470a..29ce1ec4bb09 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesString extends HashMap implements Serializable { private String name; + public AdditionalPropertiesString() { + } + /** **/ public AdditionalPropertiesString name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Animal.java index 58b0a04196ce..c1335514545d 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Animal.java @@ -30,6 +30,16 @@ public class Animal implements Serializable { private String className; private String color = "red"; + public Animal() { + } + + @JsonCreator + public Animal( + @JsonProperty(required = true, value = "className") String className + ) { + this.className = className; + } + /** **/ public Animal className(String className) { @@ -39,12 +49,12 @@ public Animal className(String className) { @ApiModelProperty(required = true, value = "") - @JsonProperty("className") + @JsonProperty(required = true, value = "className") @NotNull public String getClassName() { return className; } - @JsonProperty("className") + @JsonProperty(required = true, value = "className") public void setClassName(String className) { this.className = className; } diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 13d3acbf86a4..1b19bd442423 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -24,6 +24,9 @@ public class ArrayOfArrayOfNumberOnly implements Serializable { private @Valid List> arrayArrayNumber = new ArrayList<>(); + public ArrayOfArrayOfNumberOnly() { + } + /** **/ public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 0da76085f5fc..4c52a1b1b9ac 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -24,6 +24,9 @@ public class ArrayOfNumberOnly implements Serializable { private @Valid List arrayNumber = new ArrayList<>(); + public ArrayOfNumberOnly() { + } + /** **/ public ArrayOfNumberOnly arrayNumber(List arrayNumber) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayTest.java index 94d8d1816d12..08b5042b133d 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ArrayTest.java @@ -26,6 +26,9 @@ public class ArrayTest implements Serializable { private @Valid List> arrayArrayOfInteger = new ArrayList<>(); private @Valid List> arrayArrayOfModel = new ArrayList<>(); + public ArrayTest() { + } + /** **/ public ArrayTest arrayOfString(List arrayOfString) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/BigCat.java index ad3ab13a5aaa..01f88ac88ab5 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/BigCat.java @@ -68,6 +68,18 @@ public static KindEnum fromValue(String value) { private KindEnum kind; + public BigCat() { + } + + @JsonCreator + public BigCat( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public BigCat kind(KindEnum kind) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Capitalization.java index 975e8a44458f..a885d97419d9 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Capitalization.java @@ -25,6 +25,9 @@ public class Capitalization implements Serializable { private String scAETHFlowPoints; private String ATT_NAME; + public Capitalization() { + } + /** **/ public Capitalization smallCamel(String smallCamel) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Cat.java index 79c596df5024..4a4a6cb5529b 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Cat.java @@ -21,6 +21,18 @@ public class Cat extends Animal implements Serializable { private Boolean declawed; + public Cat() { + } + + @JsonCreator + public Cat( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Cat declawed(Boolean declawed) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Category.java index e28c49b721b7..810127abb590 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Category.java @@ -21,6 +21,16 @@ public class Category implements Serializable { private Long id; private String name = "default-name"; + public Category() { + } + + @JsonCreator + public Category( + @JsonProperty(required = true, value = "name") String name + ) { + this.name = name; + } + /** **/ public Category id(Long id) { @@ -49,12 +59,12 @@ public Category name(String name) { @ApiModelProperty(required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ClassModel.java index a11a10998914..29ecc6058ba0 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ClassModel.java @@ -22,6 +22,9 @@ public class ClassModel implements Serializable { private String propertyClass; + public ClassModel() { + } + /** **/ public ClassModel propertyClass(String propertyClass) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Client.java index 04b082db9216..59b495139f68 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Client.java @@ -20,6 +20,9 @@ public class Client implements Serializable { private String client; + public Client() { + } + /** **/ public Client client(String client) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Dog.java index b7894f4dce85..d3aecea2388a 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Dog.java @@ -21,6 +21,18 @@ public class Dog extends Animal implements Serializable { private String breed; + public Dog() { + } + + @JsonCreator + public Dog( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Dog breed(String breed) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/EnumArrays.java index 6d27955391a1..cc10fccd1162 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/EnumArrays.java @@ -118,6 +118,9 @@ public static ArrayEnumEnum fromValue(String value) { private @Valid List arrayEnum = new ArrayList<>(); + public EnumArrays() { + } + /** **/ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/EnumTest.java index 3d5322960b95..784c730c0594 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/EnumTest.java @@ -214,6 +214,16 @@ public static EnumNumberEnum fromValue(Double value) { private EnumNumberEnum enumNumber; private OuterEnum outerEnum; + public EnumTest() { + } + + @JsonCreator + public EnumTest( + @JsonProperty(required = true, value = "enum_string_required") EnumStringRequiredEnum enumStringRequired + ) { + this.enumStringRequired = enumStringRequired; + } + /** **/ public EnumTest enumString(EnumStringEnum enumString) { @@ -242,12 +252,12 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @ApiModelProperty(required = true, value = "") - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") @NotNull public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index b7913dbad7bd..209084a13169 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -25,6 +25,9 @@ public class FileSchemaTestClass implements Serializable { private ModelFile _file; private @Valid List<@Valid ModelFile> files = new ArrayList<>(); + public FileSchemaTestClass() { + } + /** **/ public FileSchemaTestClass _file(ModelFile _file) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/FormatTest.java index c2d3cd370088..b14b3e497022 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/FormatTest.java @@ -40,6 +40,22 @@ public class FormatTest implements Serializable { private String password; private BigDecimal bigDecimal; + public FormatTest() { + } + + @JsonCreator + public FormatTest( + @JsonProperty(required = true, value = "number") BigDecimal number, + @JsonProperty(required = true, value = "byte") byte[] _byte, + @JsonProperty(required = true, value = "date") LocalDate date, + @JsonProperty(required = true, value = "password") String password + ) { + this.number = number; + this._byte = _byte; + this.date = date; + this.password = password; + } + /** * minimum: 10 * maximum: 100 @@ -112,12 +128,12 @@ public FormatTest number(BigDecimal number) { @ApiModelProperty(required = true, value = "") - @JsonProperty("number") + @JsonProperty(required = true, value = "number") @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")public BigDecimal getNumber() { return number; } - @JsonProperty("number") + @JsonProperty(required = true, value = "number") public void setNumber(BigDecimal number) { this.number = number; } @@ -192,12 +208,12 @@ public FormatTest _byte(byte[] _byte) { @ApiModelProperty(required = true, value = "") - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") @NotNull @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")public byte[] getByte() { return _byte; } - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") public void setByte(byte[] _byte) { this._byte = _byte; } @@ -230,12 +246,12 @@ public FormatTest date(LocalDate date) { @ApiModelProperty(required = true, value = "") - @JsonProperty("date") + @JsonProperty(required = true, value = "date") @NotNull public LocalDate getDate() { return date; } - @JsonProperty("date") + @JsonProperty(required = true, value = "date") public void setDate(LocalDate date) { this.date = date; } @@ -287,12 +303,12 @@ public FormatTest password(String password) { @ApiModelProperty(required = true, value = "") - @JsonProperty("password") + @JsonProperty(required = true, value = "password") @NotNull @Size(min=10,max=64)public String getPassword() { return password; } - @JsonProperty("password") + @JsonProperty(required = true, value = "password") public void setPassword(String password) { this.password = password; } diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index b45ae3df063c..d45d7b049d71 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -22,6 +22,9 @@ public class HasOnlyReadOnly implements Serializable { private String bar; private String foo; + public HasOnlyReadOnly() { + } + /** **/ public HasOnlyReadOnly bar(String bar) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/MapTest.java index 5e3018fdee53..48f03b23c816 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/MapTest.java @@ -72,6 +72,9 @@ public static InnerEnum fromValue(String value) { private @Valid Map directMap = new HashMap<>(); private @Valid Map indirectMap = new HashMap<>(); + public MapTest() { + } + /** **/ public MapTest mapMapOfString(Map> mapMapOfString) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 2bec06a36075..54d2b4df4abc 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -27,6 +27,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl private Date dateTime; private @Valid Map map = new HashMap<>(); + public MixedPropertiesAndAdditionalPropertiesClass() { + } + /** **/ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Model200Response.java index 5ea5b6d0a3be..9070225f8189 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Model200Response.java @@ -24,6 +24,9 @@ public class Model200Response implements Serializable { private Integer name; private String propertyClass; + public Model200Response() { + } + /** **/ public Model200Response name(Integer name) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelApiResponse.java index 85efc4cd12ae..395a9e27524e 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -23,6 +23,9 @@ public class ModelApiResponse implements Serializable { private String type; private String message; + public ModelApiResponse() { + } + /** **/ public ModelApiResponse code(Integer code) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelFile.java index 59192fed7c66..bc802c6daf35 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelFile.java @@ -23,6 +23,9 @@ public class ModelFile implements Serializable { private String sourceURI; + public ModelFile() { + } + /** * Test capitalization **/ diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelList.java index a0a522bac0c7..c3f64c431b0a 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelList.java @@ -21,6 +21,9 @@ public class ModelList implements Serializable { private String _123list; + public ModelList() { + } + /** **/ public ModelList _123list(String _123list) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelReturn.java index e3259c166ad9..b6ff00ad2777 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ModelReturn.java @@ -23,6 +23,9 @@ public class ModelReturn implements Serializable { private Integer _return; + public ModelReturn() { + } + /** **/ public ModelReturn _return(Integer _return) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Name.java index a57fa8fee3ff..fb86ddb13e98 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Name.java @@ -25,6 +25,16 @@ public class Name implements Serializable { private String property; private Integer _123number; + public Name() { + } + + @JsonCreator + public Name( + @JsonProperty(required = true, value = "name") Integer name + ) { + this.name = name; + } + /** **/ public Name name(Integer name) { @@ -34,12 +44,12 @@ public Name name(Integer name) { @ApiModelProperty(required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public Integer getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(Integer name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/NumberOnly.java index a3d4b6a6a938..2a1c570c14cd 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/NumberOnly.java @@ -21,6 +21,9 @@ public class NumberOnly implements Serializable { private BigDecimal justNumber; + public NumberOnly() { + } + /** **/ public NumberOnly justNumber(BigDecimal justNumber) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Order.java index ec1ccc304bae..54dc514dfeec 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Order.java @@ -73,6 +73,9 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; private Boolean complete = false; + public Order() { + } + /** **/ public Order id(Long id) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/OuterComposite.java index aea31df84618..5f724a9a5e6e 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/OuterComposite.java @@ -23,6 +23,9 @@ public class OuterComposite implements Serializable { private String myString; private Boolean myBoolean; + public OuterComposite() { + } + /** **/ public OuterComposite myNumber(BigDecimal myNumber) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Pet.java index 24774d92f91d..76057b90fb49 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Pet.java @@ -80,6 +80,18 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; + public Pet() { + } + + @JsonCreator + public Pet( + @JsonProperty(required = true, value = "name") String name, + @JsonProperty(required = true, value = "photoUrls") Set photoUrls + ) { + this.name = name; + this.photoUrls = photoUrls; + } + /** **/ public Pet id(Long id) { @@ -127,12 +139,12 @@ public Pet name(String name) { @ApiModelProperty(example = "doggie", required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } @@ -146,12 +158,12 @@ public Pet photoUrls(Set photoUrls) { @ApiModelProperty(required = true, value = "") - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @NotNull public Set getPhotoUrls() { return photoUrls; } - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @JsonDeserialize(as = LinkedHashSet.class) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 273803ce7d4f..a8447ef23bb8 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -21,6 +21,9 @@ public class ReadOnlyFirst implements Serializable { private String bar; private String baz; + public ReadOnlyFirst() { + } + /** **/ public ReadOnlyFirst bar(String bar) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/SpecialModelName.java index 7e34f3d23b80..09814d95686a 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -21,6 +21,9 @@ public class SpecialModelName implements Serializable { private Long $specialPropertyName; + public SpecialModelName() { + } + /** **/ public SpecialModelName $specialPropertyName(Long $specialPropertyName) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Tag.java index 81eea32681e8..2a3a5084f558 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/Tag.java @@ -21,6 +21,9 @@ public class Tag implements Serializable { private Long id; private String name; + public Tag() { + } + /** **/ public Tag id(Long id) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 16b0d19f0c64..e43676d3a8fd 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -28,6 +28,24 @@ public class TypeHolderDefault implements Serializable { private Boolean boolItem = true; private @Valid List arrayItem = new ArrayList<>(); + public TypeHolderDefault() { + } + + @JsonCreator + public TypeHolderDefault( + @JsonProperty(required = true, value = "string_item") String stringItem, + @JsonProperty(required = true, value = "number_item") BigDecimal numberItem, + @JsonProperty(required = true, value = "integer_item") Integer integerItem, + @JsonProperty(required = true, value = "bool_item") Boolean boolItem, + @JsonProperty(required = true, value = "array_item") List arrayItem + ) { + this.stringItem = stringItem; + this.numberItem = numberItem; + this.integerItem = integerItem; + this.boolItem = boolItem; + this.arrayItem = arrayItem; + } + /** **/ public TypeHolderDefault stringItem(String stringItem) { @@ -37,12 +55,12 @@ public TypeHolderDefault stringItem(String stringItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") @NotNull public String getStringItem() { return stringItem; } - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -56,12 +74,12 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -75,12 +93,12 @@ public TypeHolderDefault integerItem(Integer integerItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") @NotNull public Integer getIntegerItem() { return integerItem; } - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -94,12 +112,12 @@ public TypeHolderDefault boolItem(Boolean boolItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") @NotNull public Boolean getBoolItem() { return boolItem; } - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -113,12 +131,12 @@ public TypeHolderDefault arrayItem(List arrayItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") @NotNull public List getArrayItem() { return arrayItem; } - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/TypeHolderExample.java index 74e40d861b1e..560579be5b28 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -29,6 +29,26 @@ public class TypeHolderExample implements Serializable { private Boolean boolItem; private @Valid List arrayItem = new ArrayList<>(); + public TypeHolderExample() { + } + + @JsonCreator + public TypeHolderExample( + @JsonProperty(required = true, value = "string_item") String stringItem, + @JsonProperty(required = true, value = "number_item") BigDecimal numberItem, + @JsonProperty(required = true, value = "float_item") Float floatItem, + @JsonProperty(required = true, value = "integer_item") Integer integerItem, + @JsonProperty(required = true, value = "bool_item") Boolean boolItem, + @JsonProperty(required = true, value = "array_item") List arrayItem + ) { + this.stringItem = stringItem; + this.numberItem = numberItem; + this.floatItem = floatItem; + this.integerItem = integerItem; + this.boolItem = boolItem; + this.arrayItem = arrayItem; + } + /** **/ public TypeHolderExample stringItem(String stringItem) { @@ -38,12 +58,12 @@ public TypeHolderExample stringItem(String stringItem) { @ApiModelProperty(example = "what", required = true, value = "") - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") @NotNull public String getStringItem() { return stringItem; } - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -57,12 +77,12 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { @ApiModelProperty(example = "1.234", required = true, value = "") - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -76,12 +96,12 @@ public TypeHolderExample floatItem(Float floatItem) { @ApiModelProperty(example = "1.234", required = true, value = "") - @JsonProperty("float_item") + @JsonProperty(required = true, value = "float_item") @NotNull public Float getFloatItem() { return floatItem; } - @JsonProperty("float_item") + @JsonProperty(required = true, value = "float_item") public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -95,12 +115,12 @@ public TypeHolderExample integerItem(Integer integerItem) { @ApiModelProperty(example = "-2", required = true, value = "") - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") @NotNull public Integer getIntegerItem() { return integerItem; } - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -114,12 +134,12 @@ public TypeHolderExample boolItem(Boolean boolItem) { @ApiModelProperty(example = "true", required = true, value = "") - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") @NotNull public Boolean getBoolItem() { return boolItem; } - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -133,12 +153,12 @@ public TypeHolderExample arrayItem(List arrayItem) { @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") @NotNull public List getArrayItem() { return arrayItem; } - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/User.java index 6f18f00afdc9..a2afc79fd928 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/User.java @@ -27,6 +27,9 @@ public class User implements Serializable { private String phone; private Integer userStatus; + public User() { + } + /** **/ public User id(Long id) { diff --git a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/XmlItem.java index 5f3e7f9749e4..5ff68d60ffef 100644 --- a/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-spec-interface-response/src/gen/java/org/openapitools/model/XmlItem.java @@ -52,6 +52,9 @@ public class XmlItem implements Serializable { private @Valid List prefixNsArray = new ArrayList<>(); private @Valid List prefixNsWrappedArray = new ArrayList<>(); + public XmlItem() { + } + /** **/ public XmlItem attributeString(String attributeString) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 682ed5dab22f..dbab262c5d50 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesAnyType extends HashMap implements Serializable { private String name; + public AdditionalPropertiesAnyType() { + } + /** **/ public AdditionalPropertiesAnyType name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 0d2035127285..583a71348d06 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -23,6 +23,9 @@ public class AdditionalPropertiesArray extends HashMap implements Serializable { private String name; + public AdditionalPropertiesArray() { + } + /** **/ public AdditionalPropertiesArray name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index f0ae250352c7..19d8b76bfe7e 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesBoolean extends HashMap implements Serializable { private String name; + public AdditionalPropertiesBoolean() { + } + /** **/ public AdditionalPropertiesBoolean name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java index fbe27e942ed5..dc771487ee16 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesClass.java @@ -34,6 +34,9 @@ public class AdditionalPropertiesClass implements Serializable { private Object anytype2; private Object anytype3; + public AdditionalPropertiesClass() { + } + /** **/ public AdditionalPropertiesClass mapString(Map mapString) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index ae73a1116cfd..98fe181659c2 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesInteger extends HashMap implements Serializable { private String name; + public AdditionalPropertiesInteger() { + } + /** **/ public AdditionalPropertiesInteger name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index 6fde1b5984c3..ab6bb29ab7ac 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -23,6 +23,9 @@ public class AdditionalPropertiesNumber extends HashMap implements Serializable { private String name; + public AdditionalPropertiesNumber() { + } + /** **/ public AdditionalPropertiesNumber name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index 5d1f9790aa27..ff6cf71ce20a 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesObject extends HashMap implements Serializable { private String name; + public AdditionalPropertiesObject() { + } + /** **/ public AdditionalPropertiesObject name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index da5e1ce3470a..29ce1ec4bb09 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesString extends HashMap implements Serializable { private String name; + public AdditionalPropertiesString() { + } + /** **/ public AdditionalPropertiesString name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Animal.java index 58b0a04196ce..c1335514545d 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Animal.java @@ -30,6 +30,16 @@ public class Animal implements Serializable { private String className; private String color = "red"; + public Animal() { + } + + @JsonCreator + public Animal( + @JsonProperty(required = true, value = "className") String className + ) { + this.className = className; + } + /** **/ public Animal className(String className) { @@ -39,12 +49,12 @@ public Animal className(String className) { @ApiModelProperty(required = true, value = "") - @JsonProperty("className") + @JsonProperty(required = true, value = "className") @NotNull public String getClassName() { return className; } - @JsonProperty("className") + @JsonProperty(required = true, value = "className") public void setClassName(String className) { this.className = className; } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java index 13d3acbf86a4..1b19bd442423 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfArrayOfNumberOnly.java @@ -24,6 +24,9 @@ public class ArrayOfArrayOfNumberOnly implements Serializable { private @Valid List> arrayArrayNumber = new ArrayList<>(); + public ArrayOfArrayOfNumberOnly() { + } + /** **/ public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java index 0da76085f5fc..4c52a1b1b9ac 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayOfNumberOnly.java @@ -24,6 +24,9 @@ public class ArrayOfNumberOnly implements Serializable { private @Valid List arrayNumber = new ArrayList<>(); + public ArrayOfNumberOnly() { + } + /** **/ public ArrayOfNumberOnly arrayNumber(List arrayNumber) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java index 94d8d1816d12..08b5042b133d 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ArrayTest.java @@ -26,6 +26,9 @@ public class ArrayTest implements Serializable { private @Valid List> arrayArrayOfInteger = new ArrayList<>(); private @Valid List> arrayArrayOfModel = new ArrayList<>(); + public ArrayTest() { + } + /** **/ public ArrayTest arrayOfString(List arrayOfString) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCat.java index ad3ab13a5aaa..01f88ac88ab5 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/BigCat.java @@ -68,6 +68,18 @@ public static KindEnum fromValue(String value) { private KindEnum kind; + public BigCat() { + } + + @JsonCreator + public BigCat( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public BigCat kind(KindEnum kind) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Capitalization.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Capitalization.java index 975e8a44458f..a885d97419d9 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Capitalization.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Capitalization.java @@ -25,6 +25,9 @@ public class Capitalization implements Serializable { private String scAETHFlowPoints; private String ATT_NAME; + public Capitalization() { + } + /** **/ public Capitalization smallCamel(String smallCamel) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Cat.java index 79c596df5024..4a4a6cb5529b 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Cat.java @@ -21,6 +21,18 @@ public class Cat extends Animal implements Serializable { private Boolean declawed; + public Cat() { + } + + @JsonCreator + public Cat( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Cat declawed(Boolean declawed) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Category.java index e28c49b721b7..810127abb590 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Category.java @@ -21,6 +21,16 @@ public class Category implements Serializable { private Long id; private String name = "default-name"; + public Category() { + } + + @JsonCreator + public Category( + @JsonProperty(required = true, value = "name") String name + ) { + this.name = name; + } + /** **/ public Category id(Long id) { @@ -49,12 +59,12 @@ public Category name(String name) { @ApiModelProperty(required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ClassModel.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ClassModel.java index a11a10998914..29ecc6058ba0 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ClassModel.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ClassModel.java @@ -22,6 +22,9 @@ public class ClassModel implements Serializable { private String propertyClass; + public ClassModel() { + } + /** **/ public ClassModel propertyClass(String propertyClass) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Client.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Client.java index 04b082db9216..59b495139f68 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Client.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Client.java @@ -20,6 +20,9 @@ public class Client implements Serializable { private String client; + public Client() { + } + /** **/ public Client client(String client) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Dog.java index b7894f4dce85..d3aecea2388a 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Dog.java @@ -21,6 +21,18 @@ public class Dog extends Animal implements Serializable { private String breed; + public Dog() { + } + + @JsonCreator + public Dog( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Dog breed(String breed) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java index 6d27955391a1..cc10fccd1162 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumArrays.java @@ -118,6 +118,9 @@ public static ArrayEnumEnum fromValue(String value) { private @Valid List arrayEnum = new ArrayList<>(); + public EnumArrays() { + } + /** **/ public EnumArrays justSymbol(JustSymbolEnum justSymbol) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumTest.java index 3d5322960b95..784c730c0594 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/EnumTest.java @@ -214,6 +214,16 @@ public static EnumNumberEnum fromValue(Double value) { private EnumNumberEnum enumNumber; private OuterEnum outerEnum; + public EnumTest() { + } + + @JsonCreator + public EnumTest( + @JsonProperty(required = true, value = "enum_string_required") EnumStringRequiredEnum enumStringRequired + ) { + this.enumStringRequired = enumStringRequired; + } + /** **/ public EnumTest enumString(EnumStringEnum enumString) { @@ -242,12 +252,12 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @ApiModelProperty(required = true, value = "") - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") @NotNull public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java index b7913dbad7bd..209084a13169 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FileSchemaTestClass.java @@ -25,6 +25,9 @@ public class FileSchemaTestClass implements Serializable { private ModelFile _file; private @Valid List<@Valid ModelFile> files = new ArrayList<>(); + public FileSchemaTestClass() { + } + /** **/ public FileSchemaTestClass _file(ModelFile _file) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java index c2d3cd370088..b14b3e497022 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java @@ -40,6 +40,22 @@ public class FormatTest implements Serializable { private String password; private BigDecimal bigDecimal; + public FormatTest() { + } + + @JsonCreator + public FormatTest( + @JsonProperty(required = true, value = "number") BigDecimal number, + @JsonProperty(required = true, value = "byte") byte[] _byte, + @JsonProperty(required = true, value = "date") LocalDate date, + @JsonProperty(required = true, value = "password") String password + ) { + this.number = number; + this._byte = _byte; + this.date = date; + this.password = password; + } + /** * minimum: 10 * maximum: 100 @@ -112,12 +128,12 @@ public FormatTest number(BigDecimal number) { @ApiModelProperty(required = true, value = "") - @JsonProperty("number") + @JsonProperty(required = true, value = "number") @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")public BigDecimal getNumber() { return number; } - @JsonProperty("number") + @JsonProperty(required = true, value = "number") public void setNumber(BigDecimal number) { this.number = number; } @@ -192,12 +208,12 @@ public FormatTest _byte(byte[] _byte) { @ApiModelProperty(required = true, value = "") - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") @NotNull @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")public byte[] getByte() { return _byte; } - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") public void setByte(byte[] _byte) { this._byte = _byte; } @@ -230,12 +246,12 @@ public FormatTest date(LocalDate date) { @ApiModelProperty(required = true, value = "") - @JsonProperty("date") + @JsonProperty(required = true, value = "date") @NotNull public LocalDate getDate() { return date; } - @JsonProperty("date") + @JsonProperty(required = true, value = "date") public void setDate(LocalDate date) { this.date = date; } @@ -287,12 +303,12 @@ public FormatTest password(String password) { @ApiModelProperty(required = true, value = "") - @JsonProperty("password") + @JsonProperty(required = true, value = "password") @NotNull @Size(min=10,max=64)public String getPassword() { return password; } - @JsonProperty("password") + @JsonProperty(required = true, value = "password") public void setPassword(String password) { this.password = password; } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java index b45ae3df063c..d45d7b049d71 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/HasOnlyReadOnly.java @@ -22,6 +22,9 @@ public class HasOnlyReadOnly implements Serializable { private String bar; private String foo; + public HasOnlyReadOnly() { + } + /** **/ public HasOnlyReadOnly bar(String bar) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java index 5e3018fdee53..48f03b23c816 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MapTest.java @@ -72,6 +72,9 @@ public static InnerEnum fromValue(String value) { private @Valid Map directMap = new HashMap<>(); private @Valid Map indirectMap = new HashMap<>(); + public MapTest() { + } + /** **/ public MapTest mapMapOfString(Map> mapMapOfString) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java index 2bec06a36075..54d2b4df4abc 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -27,6 +27,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl private Date dateTime; private @Valid Map map = new HashMap<>(); + public MixedPropertiesAndAdditionalPropertiesClass() { + } + /** **/ public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Model200Response.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Model200Response.java index 5ea5b6d0a3be..9070225f8189 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Model200Response.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Model200Response.java @@ -24,6 +24,9 @@ public class Model200Response implements Serializable { private Integer name; private String propertyClass; + public Model200Response() { + } + /** **/ public Model200Response name(Integer name) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelApiResponse.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelApiResponse.java index 85efc4cd12ae..395a9e27524e 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelApiResponse.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelApiResponse.java @@ -23,6 +23,9 @@ public class ModelApiResponse implements Serializable { private String type; private String message; + public ModelApiResponse() { + } + /** **/ public ModelApiResponse code(Integer code) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelFile.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelFile.java index 59192fed7c66..bc802c6daf35 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelFile.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelFile.java @@ -23,6 +23,9 @@ public class ModelFile implements Serializable { private String sourceURI; + public ModelFile() { + } + /** * Test capitalization **/ diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelList.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelList.java index a0a522bac0c7..c3f64c431b0a 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelList.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelList.java @@ -21,6 +21,9 @@ public class ModelList implements Serializable { private String _123list; + public ModelList() { + } + /** **/ public ModelList _123list(String _123list) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelReturn.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelReturn.java index e3259c166ad9..b6ff00ad2777 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelReturn.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ModelReturn.java @@ -23,6 +23,9 @@ public class ModelReturn implements Serializable { private Integer _return; + public ModelReturn() { + } + /** **/ public ModelReturn _return(Integer _return) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Name.java index a57fa8fee3ff..fb86ddb13e98 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Name.java @@ -25,6 +25,16 @@ public class Name implements Serializable { private String property; private Integer _123number; + public Name() { + } + + @JsonCreator + public Name( + @JsonProperty(required = true, value = "name") Integer name + ) { + this.name = name; + } + /** **/ public Name name(Integer name) { @@ -34,12 +44,12 @@ public Name name(Integer name) { @ApiModelProperty(required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public Integer getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(Integer name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/NumberOnly.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/NumberOnly.java index a3d4b6a6a938..2a1c570c14cd 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/NumberOnly.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/NumberOnly.java @@ -21,6 +21,9 @@ public class NumberOnly implements Serializable { private BigDecimal justNumber; + public NumberOnly() { + } + /** **/ public NumberOnly justNumber(BigDecimal justNumber) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Order.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Order.java index ec1ccc304bae..54dc514dfeec 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Order.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Order.java @@ -73,6 +73,9 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; private Boolean complete = false; + public Order() { + } + /** **/ public Order id(Long id) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/OuterComposite.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/OuterComposite.java index aea31df84618..5f724a9a5e6e 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/OuterComposite.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/OuterComposite.java @@ -23,6 +23,9 @@ public class OuterComposite implements Serializable { private String myString; private Boolean myBoolean; + public OuterComposite() { + } + /** **/ public OuterComposite myNumber(BigDecimal myNumber) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java index 24774d92f91d..76057b90fb49 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Pet.java @@ -80,6 +80,18 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; + public Pet() { + } + + @JsonCreator + public Pet( + @JsonProperty(required = true, value = "name") String name, + @JsonProperty(required = true, value = "photoUrls") Set photoUrls + ) { + this.name = name; + this.photoUrls = photoUrls; + } + /** **/ public Pet id(Long id) { @@ -127,12 +139,12 @@ public Pet name(String name) { @ApiModelProperty(example = "doggie", required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } @@ -146,12 +158,12 @@ public Pet photoUrls(Set photoUrls) { @ApiModelProperty(required = true, value = "") - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @NotNull public Set getPhotoUrls() { return photoUrls; } - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @JsonDeserialize(as = LinkedHashSet.class) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ReadOnlyFirst.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ReadOnlyFirst.java index 273803ce7d4f..a8447ef23bb8 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ReadOnlyFirst.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/ReadOnlyFirst.java @@ -21,6 +21,9 @@ public class ReadOnlyFirst implements Serializable { private String bar; private String baz; + public ReadOnlyFirst() { + } + /** **/ public ReadOnlyFirst bar(String bar) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/SpecialModelName.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/SpecialModelName.java index 7e34f3d23b80..09814d95686a 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/SpecialModelName.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/SpecialModelName.java @@ -21,6 +21,9 @@ public class SpecialModelName implements Serializable { private Long $specialPropertyName; + public SpecialModelName() { + } + /** **/ public SpecialModelName $specialPropertyName(Long $specialPropertyName) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Tag.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Tag.java index 81eea32681e8..2a3a5084f558 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Tag.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/Tag.java @@ -21,6 +21,9 @@ public class Tag implements Serializable { private Long id; private String name; + public Tag() { + } + /** **/ public Tag id(Long id) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 16b0d19f0c64..e43676d3a8fd 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -28,6 +28,24 @@ public class TypeHolderDefault implements Serializable { private Boolean boolItem = true; private @Valid List arrayItem = new ArrayList<>(); + public TypeHolderDefault() { + } + + @JsonCreator + public TypeHolderDefault( + @JsonProperty(required = true, value = "string_item") String stringItem, + @JsonProperty(required = true, value = "number_item") BigDecimal numberItem, + @JsonProperty(required = true, value = "integer_item") Integer integerItem, + @JsonProperty(required = true, value = "bool_item") Boolean boolItem, + @JsonProperty(required = true, value = "array_item") List arrayItem + ) { + this.stringItem = stringItem; + this.numberItem = numberItem; + this.integerItem = integerItem; + this.boolItem = boolItem; + this.arrayItem = arrayItem; + } + /** **/ public TypeHolderDefault stringItem(String stringItem) { @@ -37,12 +55,12 @@ public TypeHolderDefault stringItem(String stringItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") @NotNull public String getStringItem() { return stringItem; } - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -56,12 +74,12 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -75,12 +93,12 @@ public TypeHolderDefault integerItem(Integer integerItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") @NotNull public Integer getIntegerItem() { return integerItem; } - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -94,12 +112,12 @@ public TypeHolderDefault boolItem(Boolean boolItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") @NotNull public Boolean getBoolItem() { return boolItem; } - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -113,12 +131,12 @@ public TypeHolderDefault arrayItem(List arrayItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") @NotNull public List getArrayItem() { return arrayItem; } - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java index 74e40d861b1e..560579be5b28 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -29,6 +29,26 @@ public class TypeHolderExample implements Serializable { private Boolean boolItem; private @Valid List arrayItem = new ArrayList<>(); + public TypeHolderExample() { + } + + @JsonCreator + public TypeHolderExample( + @JsonProperty(required = true, value = "string_item") String stringItem, + @JsonProperty(required = true, value = "number_item") BigDecimal numberItem, + @JsonProperty(required = true, value = "float_item") Float floatItem, + @JsonProperty(required = true, value = "integer_item") Integer integerItem, + @JsonProperty(required = true, value = "bool_item") Boolean boolItem, + @JsonProperty(required = true, value = "array_item") List arrayItem + ) { + this.stringItem = stringItem; + this.numberItem = numberItem; + this.floatItem = floatItem; + this.integerItem = integerItem; + this.boolItem = boolItem; + this.arrayItem = arrayItem; + } + /** **/ public TypeHolderExample stringItem(String stringItem) { @@ -38,12 +58,12 @@ public TypeHolderExample stringItem(String stringItem) { @ApiModelProperty(example = "what", required = true, value = "") - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") @NotNull public String getStringItem() { return stringItem; } - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -57,12 +77,12 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { @ApiModelProperty(example = "1.234", required = true, value = "") - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -76,12 +96,12 @@ public TypeHolderExample floatItem(Float floatItem) { @ApiModelProperty(example = "1.234", required = true, value = "") - @JsonProperty("float_item") + @JsonProperty(required = true, value = "float_item") @NotNull public Float getFloatItem() { return floatItem; } - @JsonProperty("float_item") + @JsonProperty(required = true, value = "float_item") public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -95,12 +115,12 @@ public TypeHolderExample integerItem(Integer integerItem) { @ApiModelProperty(example = "-2", required = true, value = "") - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") @NotNull public Integer getIntegerItem() { return integerItem; } - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -114,12 +134,12 @@ public TypeHolderExample boolItem(Boolean boolItem) { @ApiModelProperty(example = "true", required = true, value = "") - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") @NotNull public Boolean getBoolItem() { return boolItem; } - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -133,12 +153,12 @@ public TypeHolderExample arrayItem(List arrayItem) { @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") @NotNull public List getArrayItem() { return arrayItem; } - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/User.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/User.java index 6f18f00afdc9..a2afc79fd928 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/User.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/User.java @@ -27,6 +27,9 @@ public class User implements Serializable { private String phone; private Integer userStatus; + public User() { + } + /** **/ public User id(Long id) { diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java index 5f3e7f9749e4..5ff68d60ffef 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/XmlItem.java @@ -52,6 +52,9 @@ public class XmlItem implements Serializable { private @Valid List prefixNsArray = new ArrayList<>(); private @Valid List prefixNsWrappedArray = new ArrayList<>(); + public XmlItem() { + } + /** **/ public XmlItem attributeString(String attributeString) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 12fde9003d16..024d4d00968f 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesAnyType extends HashMap implements Serializable { private String name; + public AdditionalPropertiesAnyType() { + } + /** **/ public AdditionalPropertiesAnyType name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 00eaa40ca574..a85d8b26ec91 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -23,6 +23,9 @@ public class AdditionalPropertiesArray extends HashMap implements Serializable { private String name; + public AdditionalPropertiesArray() { + } + /** **/ public AdditionalPropertiesArray name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index 84c3bc04c1d6..be426b9f8d79 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesBoolean extends HashMap implements Serializable { private String name; + public AdditionalPropertiesBoolean() { + } + /** **/ public AdditionalPropertiesBoolean name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index f596b19584a1..6e96bb14d604 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesInteger extends HashMap implements Serializable { private String name; + public AdditionalPropertiesInteger() { + } + /** **/ public AdditionalPropertiesInteger name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index 5c02bf133c72..9b08a9af670e 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -23,6 +23,9 @@ public class AdditionalPropertiesNumber extends HashMap implements Serializable { private String name; + public AdditionalPropertiesNumber() { + } + /** **/ public AdditionalPropertiesNumber name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index 49c8113584dc..fbefd0a180d2 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesObject extends HashMap implements Serializable { private String name; + public AdditionalPropertiesObject() { + } + /** **/ public AdditionalPropertiesObject name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index a733de56990e..9b3e26863980 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -22,6 +22,9 @@ public class AdditionalPropertiesString extends HashMap implements Serializable { private String name; + public AdditionalPropertiesString() { + } + /** **/ public AdditionalPropertiesString name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Animal.java index c167abb159d6..8e61b7d99dca 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Animal.java @@ -38,6 +38,13 @@ protected Animal(AnimalBuilder b) { public Animal() { } + @JsonCreator + public Animal( + @JsonProperty(required = true, value = "className") String className + ) { + this.className = className; + } + /** **/ public Animal className(String className) { @@ -47,12 +54,12 @@ public Animal className(String className) { @ApiModelProperty(required = true, value = "") - @JsonProperty("className") + @JsonProperty(required = true, value = "className") @NotNull public String getClassName() { return className; } - @JsonProperty("className") + @JsonProperty(required = true, value = "className") public void setClassName(String className) { this.className = className; } diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/BigCat.java index 74538c89febc..1f76e212d098 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/BigCat.java @@ -76,6 +76,15 @@ protected BigCat(BigCatBuilder b) { public BigCat() { } + @JsonCreator + public BigCat( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public BigCat kind(KindEnum kind) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Cat.java index d38490e827ee..2bbea1f49abe 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Cat.java @@ -29,6 +29,15 @@ protected Cat(CatBuilder b) { public Cat() { } + @JsonCreator + public Cat( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Cat declawed(Boolean declawed) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Category.java index a50fe7424795..69249c3d92c4 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Category.java @@ -29,6 +29,13 @@ protected Category(CategoryBuilder b) { public Category() { } + @JsonCreator + public Category( + @JsonProperty(required = true, value = "name") String name + ) { + this.name = name; + } + /** **/ public Category id(Long id) { @@ -57,12 +64,12 @@ public Category name(String name) { @ApiModelProperty(required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Dog.java index ea240b8296cb..9b07d1ad7b57 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Dog.java @@ -29,6 +29,15 @@ protected Dog(DogBuilder b) { public Dog() { } + @JsonCreator + public Dog( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Dog breed(String breed) { diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumTest.java index 58b646628744..a8513d5552c1 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/EnumTest.java @@ -225,6 +225,13 @@ protected EnumTest(EnumTestBuilder b) { public EnumTest() { } + @JsonCreator + public EnumTest( + @JsonProperty(required = true, value = "enum_string_required") EnumStringRequiredEnum enumStringRequired + ) { + this.enumStringRequired = enumStringRequired; + } + /** **/ public EnumTest enumString(EnumStringEnum enumString) { @@ -253,12 +260,12 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @ApiModelProperty(required = true, value = "") - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") @NotNull public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FormatTest.java index 5c423c6a56d8..3aa3eb14bf1b 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/FormatTest.java @@ -60,6 +60,19 @@ protected FormatTest(FormatTestBuilder b) { public FormatTest() { } + @JsonCreator + public FormatTest( + @JsonProperty(required = true, value = "number") BigDecimal number, + @JsonProperty(required = true, value = "byte") byte[] _byte, + @JsonProperty(required = true, value = "date") LocalDate date, + @JsonProperty(required = true, value = "password") String password + ) { + this.number = number; + this._byte = _byte; + this.date = date; + this.password = password; + } + /** * minimum: 10 * maximum: 100 @@ -132,12 +145,12 @@ public FormatTest number(BigDecimal number) { @ApiModelProperty(required = true, value = "") - @JsonProperty("number") + @JsonProperty(required = true, value = "number") @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")public BigDecimal getNumber() { return number; } - @JsonProperty("number") + @JsonProperty(required = true, value = "number") public void setNumber(BigDecimal number) { this.number = number; } @@ -212,12 +225,12 @@ public FormatTest _byte(byte[] _byte) { @ApiModelProperty(required = true, value = "") - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") @NotNull @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")public byte[] getByte() { return _byte; } - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") public void setByte(byte[] _byte) { this._byte = _byte; } @@ -250,12 +263,12 @@ public FormatTest date(LocalDate date) { @ApiModelProperty(required = true, value = "") - @JsonProperty("date") + @JsonProperty(required = true, value = "date") @NotNull public LocalDate getDate() { return date; } - @JsonProperty("date") + @JsonProperty(required = true, value = "date") public void setDate(LocalDate date) { this.date = date; } @@ -307,12 +320,12 @@ public FormatTest password(String password) { @ApiModelProperty(required = true, value = "") - @JsonProperty("password") + @JsonProperty(required = true, value = "password") @NotNull @Size(min=10,max=64)public String getPassword() { return password; } - @JsonProperty("password") + @JsonProperty(required = true, value = "password") public void setPassword(String password) { this.password = password; } diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Name.java index 79274ff288a6..b3352b7ebd7b 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Name.java @@ -35,6 +35,13 @@ protected Name(NameBuilder b) { public Name() { } + @JsonCreator + public Name( + @JsonProperty(required = true, value = "name") Integer name + ) { + this.name = name; + } + /** **/ public Name name(Integer name) { @@ -44,12 +51,12 @@ public Name name(Integer name) { @ApiModelProperty(required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public Integer getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(Integer name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Pet.java index 71854f71aee9..94d876f697f7 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/Pet.java @@ -92,6 +92,15 @@ protected Pet(PetBuilder b) { public Pet() { } + @JsonCreator + public Pet( + @JsonProperty(required = true, value = "name") String name, + @JsonProperty(required = true, value = "photoUrls") Set photoUrls + ) { + this.name = name; + this.photoUrls = photoUrls; + } + /** **/ public Pet id(Long id) { @@ -139,12 +148,12 @@ public Pet name(String name) { @ApiModelProperty(example = "doggie", required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } @@ -158,12 +167,12 @@ public Pet photoUrls(Set photoUrls) { @ApiModelProperty(required = true, value = "") - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @NotNull public Set getPhotoUrls() { return photoUrls; } - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @JsonDeserialize(as = LinkedHashSet.class) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderDefault.java index e9770bb6ae58..783312671306 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -39,6 +39,21 @@ protected TypeHolderDefault(TypeHolderDefaultBuilder b) { public TypeHolderDefault() { } + @JsonCreator + public TypeHolderDefault( + @JsonProperty(required = true, value = "string_item") String stringItem, + @JsonProperty(required = true, value = "number_item") BigDecimal numberItem, + @JsonProperty(required = true, value = "integer_item") Integer integerItem, + @JsonProperty(required = true, value = "bool_item") Boolean boolItem, + @JsonProperty(required = true, value = "array_item") List arrayItem + ) { + this.stringItem = stringItem; + this.numberItem = numberItem; + this.integerItem = integerItem; + this.boolItem = boolItem; + this.arrayItem = arrayItem; + } + /** **/ public TypeHolderDefault stringItem(String stringItem) { @@ -48,12 +63,12 @@ public TypeHolderDefault stringItem(String stringItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") @NotNull public String getStringItem() { return stringItem; } - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -67,12 +82,12 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -86,12 +101,12 @@ public TypeHolderDefault integerItem(Integer integerItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") @NotNull public Integer getIntegerItem() { return integerItem; } - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -105,12 +120,12 @@ public TypeHolderDefault boolItem(Boolean boolItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") @NotNull public Boolean getBoolItem() { return boolItem; } - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -124,12 +139,12 @@ public TypeHolderDefault arrayItem(List arrayItem) { @ApiModelProperty(required = true, value = "") - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") @NotNull public List getArrayItem() { return arrayItem; } - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java index 83c42322dbdf..f6a0f67c779b 100644 --- a/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec-jakarta/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -41,6 +41,23 @@ protected TypeHolderExample(TypeHolderExampleBuilder b) { public TypeHolderExample() { } + @JsonCreator + public TypeHolderExample( + @JsonProperty(required = true, value = "string_item") String stringItem, + @JsonProperty(required = true, value = "number_item") BigDecimal numberItem, + @JsonProperty(required = true, value = "float_item") Float floatItem, + @JsonProperty(required = true, value = "integer_item") Integer integerItem, + @JsonProperty(required = true, value = "bool_item") Boolean boolItem, + @JsonProperty(required = true, value = "array_item") List arrayItem + ) { + this.stringItem = stringItem; + this.numberItem = numberItem; + this.floatItem = floatItem; + this.integerItem = integerItem; + this.boolItem = boolItem; + this.arrayItem = arrayItem; + } + /** **/ public TypeHolderExample stringItem(String stringItem) { @@ -50,12 +67,12 @@ public TypeHolderExample stringItem(String stringItem) { @ApiModelProperty(example = "what", required = true, value = "") - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") @NotNull public String getStringItem() { return stringItem; } - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -69,12 +86,12 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { @ApiModelProperty(example = "1.234", required = true, value = "") - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -88,12 +105,12 @@ public TypeHolderExample floatItem(Float floatItem) { @ApiModelProperty(example = "1.234", required = true, value = "") - @JsonProperty("float_item") + @JsonProperty(required = true, value = "float_item") @NotNull public Float getFloatItem() { return floatItem; } - @JsonProperty("float_item") + @JsonProperty(required = true, value = "float_item") public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -107,12 +124,12 @@ public TypeHolderExample integerItem(Integer integerItem) { @ApiModelProperty(example = "-2", required = true, value = "") - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") @NotNull public Integer getIntegerItem() { return integerItem; } - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -126,12 +143,12 @@ public TypeHolderExample boolItem(Boolean boolItem) { @ApiModelProperty(example = "true", required = true, value = "") - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") @NotNull public Boolean getBoolItem() { return boolItem; } - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -145,12 +162,12 @@ public TypeHolderExample arrayItem(List arrayItem) { @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") @NotNull public List getArrayItem() { return arrayItem; } - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java index 690816bc340b..8f3dd858a411 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesAnyType.java @@ -20,6 +20,9 @@ public class AdditionalPropertiesAnyType extends HashMap implements Serializable { private String name; + public AdditionalPropertiesAnyType() { + } + /** **/ public AdditionalPropertiesAnyType name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java index 4178658aace3..9c34b3348f44 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesArray.java @@ -21,6 +21,9 @@ public class AdditionalPropertiesArray extends HashMap implements Serializable { private String name; + public AdditionalPropertiesArray() { + } + /** **/ public AdditionalPropertiesArray name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java index abfefbc1a4f0..f18f63f6decc 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesBoolean.java @@ -20,6 +20,9 @@ public class AdditionalPropertiesBoolean extends HashMap implements Serializable { private String name; + public AdditionalPropertiesBoolean() { + } + /** **/ public AdditionalPropertiesBoolean name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java index c7154b1a36ca..1e58d1629a74 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesInteger.java @@ -20,6 +20,9 @@ public class AdditionalPropertiesInteger extends HashMap implements Serializable { private String name; + public AdditionalPropertiesInteger() { + } + /** **/ public AdditionalPropertiesInteger name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java index 06b260d7089e..35a4f1a86572 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesNumber.java @@ -21,6 +21,9 @@ public class AdditionalPropertiesNumber extends HashMap implements Serializable { private String name; + public AdditionalPropertiesNumber() { + } + /** **/ public AdditionalPropertiesNumber name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java index 57e8c47b879c..c803f3fb9f1b 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesObject.java @@ -20,6 +20,9 @@ public class AdditionalPropertiesObject extends HashMap implements Serializable { private String name; + public AdditionalPropertiesObject() { + } + /** **/ public AdditionalPropertiesObject name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java index f79536b7cd03..dd922905bced 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/AdditionalPropertiesString.java @@ -20,6 +20,9 @@ public class AdditionalPropertiesString extends HashMap implements Serializable { private String name; + public AdditionalPropertiesString() { + } + /** **/ public AdditionalPropertiesString name(String name) { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Animal.java index cae9befaf656..939b97d8936f 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Animal.java @@ -36,6 +36,13 @@ protected Animal(AnimalBuilder b) { public Animal() { } + @JsonCreator + public Animal( + @JsonProperty(required = true, value = "className") String className + ) { + this.className = className; + } + /** **/ public Animal className(String className) { @@ -45,12 +52,12 @@ public Animal className(String className) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("className") + @JsonProperty(required = true, value = "className") @NotNull public String getClassName() { return className; } - @JsonProperty("className") + @JsonProperty(required = true, value = "className") public void setClassName(String className) { this.className = className; } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/BigCat.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/BigCat.java index d666d8c99aa9..e184f9db157e 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/BigCat.java @@ -74,6 +74,15 @@ protected BigCat(BigCatBuilder b) { public BigCat() { } + @JsonCreator + public BigCat( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public BigCat kind(KindEnum kind) { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Cat.java index 80d3df3d54ec..1b8932c4a4ac 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Cat.java @@ -27,6 +27,15 @@ protected Cat(CatBuilder b) { public Cat() { } + @JsonCreator + public Cat( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Cat declawed(Boolean declawed) { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Category.java index f3470ddeb857..570c10c72552 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Category.java @@ -27,6 +27,13 @@ protected Category(CategoryBuilder b) { public Category() { } + @JsonCreator + public Category( + @JsonProperty(required = true, value = "name") String name + ) { + this.name = name; + } + /** **/ public Category id(Long id) { @@ -55,12 +62,12 @@ public Category name(String name) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Dog.java index cb4829e54314..6d49e874c647 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Dog.java @@ -27,6 +27,15 @@ protected Dog(DogBuilder b) { public Dog() { } + @JsonCreator + public Dog( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Dog breed(String breed) { diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumTest.java index c953c752ec4a..ff88a24de43e 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/EnumTest.java @@ -223,6 +223,13 @@ protected EnumTest(EnumTestBuilder b) { public EnumTest() { } + @JsonCreator + public EnumTest( + @JsonProperty(required = true, value = "enum_string_required") EnumStringRequiredEnum enumStringRequired + ) { + this.enumStringRequired = enumStringRequired; + } + /** **/ public EnumTest enumString(EnumStringEnum enumString) { @@ -251,12 +258,12 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") @NotNull public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FormatTest.java index 2a2f86d93177..f6783a7fceb6 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/FormatTest.java @@ -58,6 +58,19 @@ protected FormatTest(FormatTestBuilder b) { public FormatTest() { } + @JsonCreator + public FormatTest( + @JsonProperty(required = true, value = "number") BigDecimal number, + @JsonProperty(required = true, value = "byte") byte[] _byte, + @JsonProperty(required = true, value = "date") LocalDate date, + @JsonProperty(required = true, value = "password") String password + ) { + this.number = number; + this._byte = _byte; + this.date = date; + this.password = password; + } + /** * minimum: 10 * maximum: 100 @@ -130,12 +143,12 @@ public FormatTest number(BigDecimal number) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("number") + @JsonProperty(required = true, value = "number") @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")public BigDecimal getNumber() { return number; } - @JsonProperty("number") + @JsonProperty(required = true, value = "number") public void setNumber(BigDecimal number) { this.number = number; } @@ -210,12 +223,12 @@ public FormatTest _byte(byte[] _byte) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") @NotNull @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")public byte[] getByte() { return _byte; } - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") public void setByte(byte[] _byte) { this._byte = _byte; } @@ -248,12 +261,12 @@ public FormatTest date(LocalDate date) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("date") + @JsonProperty(required = true, value = "date") @NotNull public LocalDate getDate() { return date; } - @JsonProperty("date") + @JsonProperty(required = true, value = "date") public void setDate(LocalDate date) { this.date = date; } @@ -305,12 +318,12 @@ public FormatTest password(String password) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("password") + @JsonProperty(required = true, value = "password") @NotNull @Size(min=10,max=64)public String getPassword() { return password; } - @JsonProperty("password") + @JsonProperty(required = true, value = "password") public void setPassword(String password) { this.password = password; } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Name.java index 3ea4a341f81d..027a1458778a 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Name.java @@ -33,6 +33,13 @@ protected Name(NameBuilder b) { public Name() { } + @JsonCreator + public Name( + @JsonProperty(required = true, value = "name") Integer name + ) { + this.name = name; + } + /** **/ public Name name(Integer name) { @@ -42,12 +49,12 @@ public Name name(Integer name) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public Integer getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(Integer name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Pet.java index f9e0672f46d9..2d1c50a0c054 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/Pet.java @@ -90,6 +90,15 @@ protected Pet(PetBuilder b) { public Pet() { } + @JsonCreator + public Pet( + @JsonProperty(required = true, value = "name") String name, + @JsonProperty(required = true, value = "photoUrls") Set photoUrls + ) { + this.name = name; + this.photoUrls = photoUrls; + } + /** **/ public Pet id(Long id) { @@ -137,12 +146,12 @@ public Pet name(String name) { @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "doggie", required = true, description = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } @@ -156,12 +165,12 @@ public Pet photoUrls(Set photoUrls) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @NotNull public Set getPhotoUrls() { return photoUrls; } - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @JsonDeserialize(as = LinkedHashSet.class) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderDefault.java index 2d8bed06af5e..62627a9c9c8b 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderDefault.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderDefault.java @@ -37,6 +37,21 @@ protected TypeHolderDefault(TypeHolderDefaultBuilder b) { public TypeHolderDefault() { } + @JsonCreator + public TypeHolderDefault( + @JsonProperty(required = true, value = "string_item") String stringItem, + @JsonProperty(required = true, value = "number_item") BigDecimal numberItem, + @JsonProperty(required = true, value = "integer_item") Integer integerItem, + @JsonProperty(required = true, value = "bool_item") Boolean boolItem, + @JsonProperty(required = true, value = "array_item") List arrayItem + ) { + this.stringItem = stringItem; + this.numberItem = numberItem; + this.integerItem = integerItem; + this.boolItem = boolItem; + this.arrayItem = arrayItem; + } + /** **/ public TypeHolderDefault stringItem(String stringItem) { @@ -46,12 +61,12 @@ public TypeHolderDefault stringItem(String stringItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") @NotNull public String getStringItem() { return stringItem; } - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -65,12 +80,12 @@ public TypeHolderDefault numberItem(BigDecimal numberItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -84,12 +99,12 @@ public TypeHolderDefault integerItem(Integer integerItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") @NotNull public Integer getIntegerItem() { return integerItem; } - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -103,12 +118,12 @@ public TypeHolderDefault boolItem(Boolean boolItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") @NotNull public Boolean getBoolItem() { return boolItem; } - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -122,12 +137,12 @@ public TypeHolderDefault arrayItem(List arrayItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") @NotNull public List getArrayItem() { return arrayItem; } - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java index 2989ddfb2a09..542875a91d2c 100644 --- a/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java +++ b/samples/server/petstore/jaxrs-spec-microprofile-openapi-annotations/src/gen/java/org/openapitools/model/TypeHolderExample.java @@ -39,6 +39,23 @@ protected TypeHolderExample(TypeHolderExampleBuilder b) { public TypeHolderExample() { } + @JsonCreator + public TypeHolderExample( + @JsonProperty(required = true, value = "string_item") String stringItem, + @JsonProperty(required = true, value = "number_item") BigDecimal numberItem, + @JsonProperty(required = true, value = "float_item") Float floatItem, + @JsonProperty(required = true, value = "integer_item") Integer integerItem, + @JsonProperty(required = true, value = "bool_item") Boolean boolItem, + @JsonProperty(required = true, value = "array_item") List arrayItem + ) { + this.stringItem = stringItem; + this.numberItem = numberItem; + this.floatItem = floatItem; + this.integerItem = integerItem; + this.boolItem = boolItem; + this.arrayItem = arrayItem; + } + /** **/ public TypeHolderExample stringItem(String stringItem) { @@ -48,12 +65,12 @@ public TypeHolderExample stringItem(String stringItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "what", required = true, description = "") - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") @NotNull public String getStringItem() { return stringItem; } - @JsonProperty("string_item") + @JsonProperty(required = true, value = "string_item") public void setStringItem(String stringItem) { this.stringItem = stringItem; } @@ -67,12 +84,12 @@ public TypeHolderExample numberItem(BigDecimal numberItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "1.234", required = true, description = "") - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") @NotNull @Valid public BigDecimal getNumberItem() { return numberItem; } - @JsonProperty("number_item") + @JsonProperty(required = true, value = "number_item") public void setNumberItem(BigDecimal numberItem) { this.numberItem = numberItem; } @@ -86,12 +103,12 @@ public TypeHolderExample floatItem(Float floatItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "1.234", required = true, description = "") - @JsonProperty("float_item") + @JsonProperty(required = true, value = "float_item") @NotNull public Float getFloatItem() { return floatItem; } - @JsonProperty("float_item") + @JsonProperty(required = true, value = "float_item") public void setFloatItem(Float floatItem) { this.floatItem = floatItem; } @@ -105,12 +122,12 @@ public TypeHolderExample integerItem(Integer integerItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "-2", required = true, description = "") - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") @NotNull public Integer getIntegerItem() { return integerItem; } - @JsonProperty("integer_item") + @JsonProperty(required = true, value = "integer_item") public void setIntegerItem(Integer integerItem) { this.integerItem = integerItem; } @@ -124,12 +141,12 @@ public TypeHolderExample boolItem(Boolean boolItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "true", required = true, description = "") - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") @NotNull public Boolean getBoolItem() { return boolItem; } - @JsonProperty("bool_item") + @JsonProperty(required = true, value = "bool_item") public void setBoolItem(Boolean boolItem) { this.boolItem = boolItem; } @@ -143,12 +160,12 @@ public TypeHolderExample arrayItem(List arrayItem) { @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "[0, 1, 2, 3]", required = true, description = "") - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") @NotNull public List getArrayItem() { return arrayItem; } - @JsonProperty("array_item") + @JsonProperty(required = true, value = "array_item") public void setArrayItem(List arrayItem) { this.arrayItem = arrayItem; } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Animal.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Animal.java index 686ec0af6166..ab9966ea6907 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Animal.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Animal.java @@ -35,6 +35,13 @@ protected Animal(AnimalBuilder b) { public Animal() { } + @JsonCreator + public Animal( + @JsonProperty(required = true, value = "className") String className + ) { + this.className = className; + } + /** **/ public Animal className(String className) { @@ -44,12 +51,12 @@ public Animal className(String className) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("className") + @JsonProperty(required = true, value = "className") @NotNull public String getClassName() { return className; } - @JsonProperty("className") + @JsonProperty(required = true, value = "className") public void setClassName(String className) { this.className = className; } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Cat.java index 80d3df3d54ec..1b8932c4a4ac 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Cat.java @@ -27,6 +27,15 @@ protected Cat(CatBuilder b) { public Cat() { } + @JsonCreator + public Cat( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Cat declawed(Boolean declawed) { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Category.java index f3470ddeb857..570c10c72552 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Category.java @@ -27,6 +27,13 @@ protected Category(CategoryBuilder b) { public Category() { } + @JsonCreator + public Category( + @JsonProperty(required = true, value = "name") String name + ) { + this.name = name; + } + /** **/ public Category id(Long id) { @@ -55,12 +62,12 @@ public Category name(String name) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Dog.java index cb4829e54314..6d49e874c647 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Dog.java @@ -27,6 +27,15 @@ protected Dog(DogBuilder b) { public Dog() { } + @JsonCreator + public Dog( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Dog breed(String breed) { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumTest.java index 786de4c0a8cd..dde1ef36cfdc 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/EnumTest.java @@ -233,6 +233,13 @@ protected EnumTest(EnumTestBuilder b) { public EnumTest() { } + @JsonCreator + public EnumTest( + @JsonProperty(required = true, value = "enum_string_required") EnumStringRequiredEnum enumStringRequired + ) { + this.enumStringRequired = enumStringRequired; + } + /** **/ public EnumTest enumString(EnumStringEnum enumString) { @@ -261,12 +268,12 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") @NotNull public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FormatTest.java index 6007c9427303..b4c8a2355255 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/FormatTest.java @@ -62,6 +62,19 @@ protected FormatTest(FormatTestBuilder b) { public FormatTest() { } + @JsonCreator + public FormatTest( + @JsonProperty(required = true, value = "number") BigDecimal number, + @JsonProperty(required = true, value = "byte") byte[] _byte, + @JsonProperty(required = true, value = "date") LocalDate date, + @JsonProperty(required = true, value = "password") String password + ) { + this.number = number; + this._byte = _byte; + this.date = date; + this.password = password; + } + /** * minimum: 10 * maximum: 100 @@ -134,12 +147,12 @@ public FormatTest number(BigDecimal number) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("number") + @JsonProperty(required = true, value = "number") @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")public BigDecimal getNumber() { return number; } - @JsonProperty("number") + @JsonProperty(required = true, value = "number") public void setNumber(BigDecimal number) { this.number = number; } @@ -233,12 +246,12 @@ public FormatTest _byte(byte[] _byte) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") @NotNull public byte[] getByte() { return _byte; } - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") public void setByte(byte[] _byte) { this._byte = _byte; } @@ -271,12 +284,12 @@ public FormatTest date(LocalDate date) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("date") + @JsonProperty(required = true, value = "date") @NotNull public LocalDate getDate() { return date; } - @JsonProperty("date") + @JsonProperty(required = true, value = "date") public void setDate(LocalDate date) { this.date = date; } @@ -328,12 +341,12 @@ public FormatTest password(String password) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("password") + @JsonProperty(required = true, value = "password") @NotNull @Size(min=10,max=64)public String getPassword() { return password; } - @JsonProperty("password") + @JsonProperty(required = true, value = "password") public void setPassword(String password) { this.password = password; } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Name.java index 3ea4a341f81d..027a1458778a 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Name.java @@ -33,6 +33,13 @@ protected Name(NameBuilder b) { public Name() { } + @JsonCreator + public Name( + @JsonProperty(required = true, value = "name") Integer name + ) { + this.name = name; + } + /** **/ public Name name(Integer name) { @@ -42,12 +49,12 @@ public Name name(Integer name) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public Integer getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(Integer name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/NullableClass.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/NullableClass.java index 801091fd07fc..06f08248ed90 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/NullableClass.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/NullableClass.java @@ -38,6 +38,9 @@ public class NullableClass extends HashMap implements Serializab private @Valid Map objectAndItemsNullableProp; private @Valid Map objectItemsNullable = new HashMap<>(); + public NullableClass() { + } + /** **/ public NullableClass integerProp(Integer integerProp) { diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java index ade730f23e44..3f3ccf42e108 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java @@ -26,6 +26,13 @@ protected OuterObjectWithEnumProperty(OuterObjectWithEnumPropertyBuilder b public OuterObjectWithEnumProperty() { } + @JsonCreator + public OuterObjectWithEnumProperty( + @JsonProperty(required = true, value = "value") OuterEnumInteger value + ) { + this.value = value; + } + /** **/ public OuterObjectWithEnumProperty value(OuterEnumInteger value) { @@ -35,12 +42,12 @@ public OuterObjectWithEnumProperty value(OuterEnumInteger value) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("value") + @JsonProperty(required = true, value = "value") @NotNull public OuterEnumInteger getValue() { return value; } - @JsonProperty("value") + @JsonProperty(required = true, value = "value") public void setValue(OuterEnumInteger value) { this.value = value; } diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Pet.java index f9e0672f46d9..2d1c50a0c054 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/Pet.java @@ -90,6 +90,15 @@ protected Pet(PetBuilder b) { public Pet() { } + @JsonCreator + public Pet( + @JsonProperty(required = true, value = "name") String name, + @JsonProperty(required = true, value = "photoUrls") Set photoUrls + ) { + this.name = name; + this.photoUrls = photoUrls; + } + /** **/ public Pet id(Long id) { @@ -137,12 +146,12 @@ public Pet name(String name) { @org.eclipse.microprofile.openapi.annotations.media.Schema(example = "doggie", required = true, description = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } @@ -156,12 +165,12 @@ public Pet photoUrls(Set photoUrls) { @org.eclipse.microprofile.openapi.annotations.media.Schema(required = true, description = "") - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @NotNull public Set getPhotoUrls() { return photoUrls; } - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @JsonDeserialize(as = LinkedHashSet.class) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; diff --git a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java index fce8a793272a..0d59bcafcd05 100644 --- a/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/server/petstore/jaxrs-spec-quarkus-mutiny/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -21,6 +21,9 @@ public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap implements Serializable { private String someProperty; + public TestInlineFreeformAdditionalPropertiesRequest() { + } + /** **/ public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) { diff --git a/samples/server/petstore/jaxrs-spec-required-and-readonly-property/src/gen/java/org/openapitools/model/ReadonlyAndRequiredProperties.java b/samples/server/petstore/jaxrs-spec-required-and-readonly-property/src/gen/java/org/openapitools/model/ReadonlyAndRequiredProperties.java index 93ca65d4b9ec..dc033c980bc9 100644 --- a/samples/server/petstore/jaxrs-spec-required-and-readonly-property/src/gen/java/org/openapitools/model/ReadonlyAndRequiredProperties.java +++ b/samples/server/petstore/jaxrs-spec-required-and-readonly-property/src/gen/java/org/openapitools/model/ReadonlyAndRequiredProperties.java @@ -33,6 +33,15 @@ protected ReadonlyAndRequiredProperties(ReadonlyAndRequiredPropertiesBuilder b) { public Animal() { } + @JsonCreator + public Animal( + @JsonProperty(required = true, value = "className") String className + ) { + this.className = className; + } + /** **/ public Animal className(String className) { @@ -46,12 +53,12 @@ public Animal className(String className) { @ApiModelProperty(required = true, value = "") - @JsonProperty("className") + @JsonProperty(required = true, value = "className") @NotNull public String getClassName() { return className; } - @JsonProperty("className") + @JsonProperty(required = true, value = "className") public void setClassName(String className) { this.className = className; } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java index 3ef8246a71d0..db43dc523c37 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Cat.java @@ -29,6 +29,15 @@ protected Cat(CatBuilder b) { public Cat() { } + @JsonCreator + public Cat( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Cat declawed(Boolean declawed) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java index ff3dd9915e1d..5797201b3397 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Category.java @@ -29,6 +29,13 @@ protected Category(CategoryBuilder b) { public Category() { } + @JsonCreator + public Category( + @JsonProperty(required = true, value = "name") String name + ) { + this.name = name; + } + /** **/ public Category id(Long id) { @@ -57,12 +64,12 @@ public Category name(String name) { @ApiModelProperty(required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java index ceb8a35bf468..8effddd93978 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Dog.java @@ -29,6 +29,15 @@ protected Dog(DogBuilder b) { public Dog() { } + @JsonCreator + public Dog( + @JsonProperty(required = true, value = "className") String className + ) { + super( + className + ); + } + /** **/ public Dog breed(String breed) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java index 969d0b2019d7..d5941038dff4 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/EnumTest.java @@ -235,6 +235,13 @@ protected EnumTest(EnumTestBuilder b) { public EnumTest() { } + @JsonCreator + public EnumTest( + @JsonProperty(required = true, value = "enum_string_required") EnumStringRequiredEnum enumStringRequired + ) { + this.enumStringRequired = enumStringRequired; + } + /** **/ public EnumTest enumString(EnumStringEnum enumString) { @@ -263,12 +270,12 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { @ApiModelProperty(required = true, value = "") - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") @NotNull public EnumStringRequiredEnum getEnumStringRequired() { return enumStringRequired; } - @JsonProperty("enum_string_required") + @JsonProperty(required = true, value = "enum_string_required") public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { this.enumStringRequired = enumStringRequired; } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java index ffd73a409f0c..205c9f8e242a 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java @@ -64,6 +64,19 @@ protected FormatTest(FormatTestBuilder b) { public FormatTest() { } + @JsonCreator + public FormatTest( + @JsonProperty(required = true, value = "number") BigDecimal number, + @JsonProperty(required = true, value = "byte") byte[] _byte, + @JsonProperty(required = true, value = "date") LocalDate date, + @JsonProperty(required = true, value = "password") String password + ) { + this.number = number; + this._byte = _byte; + this.date = date; + this.password = password; + } + /** * minimum: 10 * maximum: 100 @@ -136,12 +149,12 @@ public FormatTest number(BigDecimal number) { @ApiModelProperty(required = true, value = "") - @JsonProperty("number") + @JsonProperty(required = true, value = "number") @NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")public BigDecimal getNumber() { return number; } - @JsonProperty("number") + @JsonProperty(required = true, value = "number") public void setNumber(BigDecimal number) { this.number = number; } @@ -235,12 +248,12 @@ public FormatTest _byte(byte[] _byte) { @ApiModelProperty(required = true, value = "") - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") @NotNull public byte[] getByte() { return _byte; } - @JsonProperty("byte") + @JsonProperty(required = true, value = "byte") public void setByte(byte[] _byte) { this._byte = _byte; } @@ -273,12 +286,12 @@ public FormatTest date(LocalDate date) { @ApiModelProperty(required = true, value = "") - @JsonProperty("date") + @JsonProperty(required = true, value = "date") @NotNull public LocalDate getDate() { return date; } - @JsonProperty("date") + @JsonProperty(required = true, value = "date") public void setDate(LocalDate date) { this.date = date; } @@ -330,12 +343,12 @@ public FormatTest password(String password) { @ApiModelProperty(required = true, value = "") - @JsonProperty("password") + @JsonProperty(required = true, value = "password") @NotNull @Size(min=10,max=64)public String getPassword() { return password; } - @JsonProperty("password") + @JsonProperty(required = true, value = "password") public void setPassword(String password) { this.password = password; } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java index c5bcb34c6bb6..c1181780e838 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Name.java @@ -35,6 +35,13 @@ protected Name(NameBuilder b) { public Name() { } + @JsonCreator + public Name( + @JsonProperty(required = true, value = "name") Integer name + ) { + this.name = name; + } + /** **/ public Name name(Integer name) { @@ -44,12 +51,12 @@ public Name name(Integer name) { @ApiModelProperty(required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public Integer getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(Integer name) { this.name = name; } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NullableClass.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NullableClass.java index 9453f08220e4..a620fa56e8e5 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NullableClass.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/NullableClass.java @@ -40,6 +40,9 @@ public class NullableClass extends HashMap implements Serializab private @Valid Map objectAndItemsNullableProp; private @Valid Map objectItemsNullable = new HashMap<>(); + public NullableClass() { + } + /** **/ public NullableClass integerProp(Integer integerProp) { diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java index ca6d08bf3ad5..c85c7d918795 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/OuterObjectWithEnumProperty.java @@ -28,6 +28,13 @@ protected OuterObjectWithEnumProperty(OuterObjectWithEnumPropertyBuilder b public OuterObjectWithEnumProperty() { } + @JsonCreator + public OuterObjectWithEnumProperty( + @JsonProperty(required = true, value = "value") OuterEnumInteger value + ) { + this.value = value; + } + /** **/ public OuterObjectWithEnumProperty value(OuterEnumInteger value) { @@ -37,12 +44,12 @@ public OuterObjectWithEnumProperty value(OuterEnumInteger value) { @ApiModelProperty(required = true, value = "") - @JsonProperty("value") + @JsonProperty(required = true, value = "value") @NotNull public OuterEnumInteger getValue() { return value; } - @JsonProperty("value") + @JsonProperty(required = true, value = "value") public void setValue(OuterEnumInteger value) { this.value = value; } diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java index 9e107cd66a53..6dd820a36f76 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/Pet.java @@ -92,6 +92,15 @@ protected Pet(PetBuilder b) { public Pet() { } + @JsonCreator + public Pet( + @JsonProperty(required = true, value = "name") String name, + @JsonProperty(required = true, value = "photoUrls") Set photoUrls + ) { + this.name = name; + this.photoUrls = photoUrls; + } + /** **/ public Pet id(Long id) { @@ -139,12 +148,12 @@ public Pet name(String name) { @ApiModelProperty(example = "doggie", required = true, value = "") - @JsonProperty("name") + @JsonProperty(required = true, value = "name") @NotNull public String getName() { return name; } - @JsonProperty("name") + @JsonProperty(required = true, value = "name") public void setName(String name) { this.name = name; } @@ -158,12 +167,12 @@ public Pet photoUrls(Set photoUrls) { @ApiModelProperty(required = true, value = "") - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @NotNull public Set getPhotoUrls() { return photoUrls; } - @JsonProperty("photoUrls") + @JsonProperty(required = true, value = "photoUrls") @JsonDeserialize(as = LinkedHashSet.class) public void setPhotoUrls(Set photoUrls) { this.photoUrls = photoUrls; diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java index 60b300dd0e7b..c8d1752b7a83 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TestInlineFreeformAdditionalPropertiesRequest.java @@ -23,6 +23,9 @@ public class TestInlineFreeformAdditionalPropertiesRequest extends HashMap implements Serializable { private String someProperty; + public TestInlineFreeformAdditionalPropertiesRequest() { + } + /** **/ public TestInlineFreeformAdditionalPropertiesRequest someProperty(String someProperty) {