forked from loafle/openapi-generator-original
[JAXRS-SPEC] no @Valid annotation on simple fields (#18302)
* fix and test * whitespace change, generate samples
This commit is contained in:
parent
3bb17efa09
commit
b11005b00d
@ -1,2 +1 @@
|
||||
{{#required}}{{^isReadOnly}} @NotNull
|
||||
{{/isReadOnly}}{{/required}}{{>beanValidationCore}}
|
||||
{{#required}}{{^isReadOnly}}@NotNull {{/isReadOnly}}{{/required}}{{#isContainer}}{{^isPrimitiveType}}{{^isEnum}}@Valid {{/isEnum}}{{/isPrimitiveType}}{{/isContainer}}{{^isContainer}}{{^isPrimitiveType}}@Valid {{/isPrimitiveType}}{{/isContainer}}{{>beanValidationCore}}
|
@ -32,7 +32,7 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens
|
||||
{{#vendorExtensions.x-field-extra-annotation}}
|
||||
{{{vendorExtensions.x-field-extra-annotation}}}
|
||||
{{/vendorExtensions.x-field-extra-annotation}}
|
||||
private {{#useBeanValidation}}@Valid {{/useBeanValidation}}{{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
||||
private {{#isContainer}}{{#useBeanValidation}}@Valid {{/useBeanValidation}}{{/isContainer}}{{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
||||
{{/vars}}
|
||||
{{#generateBuilders}}
|
||||
{{^additionalProperties}}
|
||||
@ -72,7 +72,7 @@ public class {{classname}} {{#parent}}extends {{{.}}}{{/parent}} {{#vendorExtens
|
||||
@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}}")
|
||||
{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{>beanValidatedType}} {{getter}}() {
|
||||
{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}}public {{>beanValidatedType}} {{getter}}() {
|
||||
return {{name}};
|
||||
}
|
||||
|
||||
|
@ -714,6 +714,31 @@ public class JavaJAXRSSpecServerCodegenTest extends JavaJaxrsBaseTest {
|
||||
.containsWithNameAndAttributes("DefaultValue", ImmutableMap.of("value", "\"true\""));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testValidAnnotation_issue14432() throws Exception {
|
||||
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
|
||||
output.deleteOnExit();
|
||||
|
||||
OpenAPI openAPI = new OpenAPIParser()
|
||||
.readLocation("src/test/resources/3_0/issue_14432.yaml", null, new ParseOptions()).getOpenAPI();
|
||||
|
||||
codegen.setOutputDir(output.getAbsolutePath());
|
||||
|
||||
ClientOptInput input = new ClientOptInput()
|
||||
.openAPI(openAPI)
|
||||
.config(codegen);
|
||||
|
||||
DefaultGenerator generator = new DefaultGenerator();
|
||||
Map<String, File> files = generator.opts(input).generate().stream()
|
||||
.collect(Collectors.toMap(File::getName, Function.identity()));
|
||||
|
||||
JavaFileAssert.assertThat(files.get("ComplexObject.java"))
|
||||
.fileContains("private @Valid List<LocalDate> dates")
|
||||
.fileDoesNotContains("private @Valid SymbolTypeEnum symbolType")
|
||||
.fileDoesNotContains("@Valid String")
|
||||
.fileDoesNotContains("@Valid Double");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void arrayNullableDefaultValueTests() throws Exception {
|
||||
final File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
|
||||
|
@ -0,0 +1,30 @@
|
||||
openapi: "3.0.3"
|
||||
info:
|
||||
title: "Demo models"
|
||||
version: "1.0"
|
||||
paths: {}
|
||||
components:
|
||||
schemas:
|
||||
ComplexObject:
|
||||
type: "object"
|
||||
properties:
|
||||
id:
|
||||
type: "string"
|
||||
probability:
|
||||
type: "number"
|
||||
format: "double"
|
||||
dates:
|
||||
type: "array"
|
||||
items:
|
||||
type: "string"
|
||||
format: "date"
|
||||
symbolType:
|
||||
type: "string"
|
||||
enum:
|
||||
- "SYMBOL1"
|
||||
- "SYMBOL2"
|
||||
- "SYMBOL3"
|
||||
ComplexArray:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/ComplexObject'
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesAnyType")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesArray")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesBoolean")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -30,9 +30,9 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
private @Valid Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||
private @Valid Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||
private @Valid Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||
private @Valid Object anytype1;
|
||||
private @Valid Object anytype2;
|
||||
private @Valid Object anytype3;
|
||||
private Object anytype1;
|
||||
private Object anytype2;
|
||||
private Object anytype3;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -79,7 +79,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_number")
|
||||
public Map<String, BigDecimal> getMapNumber() {
|
||||
@Valid public Map<String, BigDecimal> getMapNumber() {
|
||||
return mapNumber;
|
||||
}
|
||||
|
||||
@ -184,7 +184,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_array_integer")
|
||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
@Valid public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
return mapArrayInteger;
|
||||
}
|
||||
|
||||
@ -219,7 +219,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_array_anytype")
|
||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
@Valid public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
return mapArrayAnytype;
|
||||
}
|
||||
|
||||
@ -254,7 +254,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_string")
|
||||
public Map<String, Map<String, String>> getMapMapString() {
|
||||
@Valid public Map<String, Map<String, String>> getMapMapString() {
|
||||
return mapMapString;
|
||||
}
|
||||
|
||||
@ -289,7 +289,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_anytype")
|
||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
@Valid public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
return mapMapAnytype;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesInteger")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesNumber")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesObject")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesString")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -27,8 +27,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Animal")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Animal implements Serializable {
|
||||
private @Valid String className;
|
||||
private @Valid String color = "red";
|
||||
private String className;
|
||||
private String color = "red";
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -40,8 +40,7 @@ public class Animal implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("className")
|
||||
@NotNull
|
||||
public String getClassName() {
|
||||
@NotNull public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||
@Valid public List<@Valid List<@Valid BigDecimal>> getArrayArrayNumber() {
|
||||
return arrayArrayNumber;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ public class ArrayOfNumberOnly implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("ArrayNumber")
|
||||
public List<BigDecimal> getArrayNumber() {
|
||||
@Valid public List<@Valid BigDecimal> getArrayNumber() {
|
||||
return arrayNumber;
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ public class ArrayTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("array_array_of_integer")
|
||||
public List<List<Long>> getArrayArrayOfInteger() {
|
||||
@Valid public List<List<Long>> getArrayArrayOfInteger() {
|
||||
return arrayArrayOfInteger;
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@ public class ArrayTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("array_array_of_model")
|
||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
@Valid public List<@Valid List<@Valid ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
return arrayArrayOfModel;
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ public class BigCat extends Cat implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid KindEnum kind;
|
||||
private KindEnum kind;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Capitalization")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Capitalization implements Serializable {
|
||||
private @Valid String smallCamel;
|
||||
private @Valid String capitalCamel;
|
||||
private @Valid String smallSnake;
|
||||
private @Valid String capitalSnake;
|
||||
private @Valid String scAETHFlowPoints;
|
||||
private @Valid String ATT_NAME;
|
||||
private String smallCamel;
|
||||
private String capitalCamel;
|
||||
private String smallSnake;
|
||||
private String capitalSnake;
|
||||
private String scAETHFlowPoints;
|
||||
private String ATT_NAME;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Cat")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Cat extends Animal implements Serializable {
|
||||
private @Valid Boolean declawed;
|
||||
private Boolean declawed;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Category")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Category implements Serializable {
|
||||
private @Valid Long id;
|
||||
private @Valid String name = "default-name";
|
||||
private Long id;
|
||||
private String name = "default-name";
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -50,8 +50,7 @@ public class Category implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public String getName() {
|
||||
@NotNull public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("ClassModel")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ClassModel implements Serializable {
|
||||
private @Valid String propertyClass;
|
||||
private String propertyClass;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -18,7 +18,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Client")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Client implements Serializable {
|
||||
private @Valid String client;
|
||||
private String client;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Dog")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Dog extends Animal implements Serializable {
|
||||
private @Valid String breed;
|
||||
private String breed;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -68,7 +68,7 @@ public class EnumArrays implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid JustSymbolEnum justSymbol;
|
||||
private JustSymbolEnum justSymbol;
|
||||
public enum ArrayEnumEnum {
|
||||
|
||||
FISH(String.valueOf("fish")), CRAB(String.valueOf("crab"));
|
||||
|
@ -67,7 +67,7 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid EnumStringEnum enumString;
|
||||
private EnumStringEnum enumString;
|
||||
public enum EnumStringRequiredEnum {
|
||||
|
||||
UPPER(String.valueOf("UPPER")), LOWER(String.valueOf("lower")), EMPTY(String.valueOf(""));
|
||||
@ -115,7 +115,7 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid EnumStringRequiredEnum enumStringRequired;
|
||||
private EnumStringRequiredEnum enumStringRequired;
|
||||
public enum EnumIntegerEnum {
|
||||
|
||||
NUMBER_1(Integer.valueOf(1)), NUMBER_MINUS_1(Integer.valueOf(-1));
|
||||
@ -163,7 +163,7 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid EnumIntegerEnum enumInteger;
|
||||
private EnumIntegerEnum enumInteger;
|
||||
public enum EnumNumberEnum {
|
||||
|
||||
NUMBER_1_DOT_1(Double.valueOf(1.1)), NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2));
|
||||
@ -211,8 +211,8 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid EnumNumberEnum enumNumber;
|
||||
private @Valid OuterEnum outerEnum;
|
||||
private EnumNumberEnum enumNumber;
|
||||
private OuterEnum outerEnum;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -243,8 +243,7 @@ public class EnumTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("enum_string_required")
|
||||
@NotNull
|
||||
public EnumStringRequiredEnum getEnumStringRequired() {
|
||||
@NotNull public EnumStringRequiredEnum getEnumStringRequired() {
|
||||
return enumStringRequired;
|
||||
}
|
||||
|
||||
@ -301,7 +300,7 @@ public class EnumTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("outerEnum")
|
||||
public OuterEnum getOuterEnum() {
|
||||
@Valid public OuterEnum getOuterEnum() {
|
||||
return outerEnum;
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("FileSchemaTestClass")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class FileSchemaTestClass implements Serializable {
|
||||
private @Valid ModelFile _file;
|
||||
private ModelFile _file;
|
||||
private @Valid List<@Valid ModelFile> files = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -35,7 +35,7 @@ public class FileSchemaTestClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("file")
|
||||
public ModelFile getFile() {
|
||||
@Valid public ModelFile getFile() {
|
||||
return _file;
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ public class FileSchemaTestClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("files")
|
||||
public List<ModelFile> getFiles() {
|
||||
@Valid public List<@Valid ModelFile> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
|
@ -25,20 +25,20 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("format_test")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class FormatTest implements Serializable {
|
||||
private @Valid Integer integer;
|
||||
private @Valid Integer int32;
|
||||
private @Valid Long int64;
|
||||
private @Valid BigDecimal number;
|
||||
private @Valid Float _float;
|
||||
private @Valid Double _double;
|
||||
private @Valid String string;
|
||||
private @Valid byte[] _byte;
|
||||
private @Valid File binary;
|
||||
private @Valid LocalDate date;
|
||||
private @Valid Date dateTime;
|
||||
private @Valid UUID uuid;
|
||||
private @Valid String password;
|
||||
private @Valid BigDecimal bigDecimal;
|
||||
private Integer integer;
|
||||
private Integer int32;
|
||||
private Long int64;
|
||||
private BigDecimal number;
|
||||
private Float _float;
|
||||
private Double _double;
|
||||
private String string;
|
||||
private byte[] _byte;
|
||||
private File binary;
|
||||
private LocalDate date;
|
||||
private Date dateTime;
|
||||
private UUID uuid;
|
||||
private String password;
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
/**
|
||||
* minimum: 10
|
||||
@ -52,7 +52,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("integer")
|
||||
@Min(10) @Max(100) public Integer getInteger() {
|
||||
@Min(10) @Max(100)public Integer getInteger() {
|
||||
return integer;
|
||||
}
|
||||
|
||||
@ -73,7 +73,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("int32")
|
||||
@Min(20) @Max(200) public Integer getInt32() {
|
||||
@Min(20) @Max(200)public Integer getInt32() {
|
||||
return int32;
|
||||
}
|
||||
|
||||
@ -113,8 +113,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("number")
|
||||
@NotNull
|
||||
@DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() {
|
||||
@NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")public BigDecimal getNumber() {
|
||||
return number;
|
||||
}
|
||||
|
||||
@ -135,7 +134,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("float")
|
||||
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
|
||||
@DecimalMin("54.3") @DecimalMax("987.6")public Float getFloat() {
|
||||
return _float;
|
||||
}
|
||||
|
||||
@ -156,7 +155,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("double")
|
||||
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
|
||||
@DecimalMin("67.8") @DecimalMax("123.4")public Double getDouble() {
|
||||
return _double;
|
||||
}
|
||||
|
||||
@ -175,7 +174,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("string")
|
||||
@Pattern(regexp="/[a-z]/i") public String getString() {
|
||||
@Pattern(regexp="/[a-z]/i")public String getString() {
|
||||
return string;
|
||||
}
|
||||
|
||||
@ -194,8 +193,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("byte")
|
||||
@NotNull
|
||||
@Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() {
|
||||
@NotNull @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")public byte[] getByte() {
|
||||
return _byte;
|
||||
}
|
||||
|
||||
@ -214,7 +212,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("binary")
|
||||
public File getBinary() {
|
||||
@Valid public File getBinary() {
|
||||
return binary;
|
||||
}
|
||||
|
||||
@ -233,8 +231,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("date")
|
||||
@NotNull
|
||||
public LocalDate getDate() {
|
||||
@NotNull @Valid public LocalDate getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
@ -253,7 +250,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("dateTime")
|
||||
public Date getDateTime() {
|
||||
@Valid public Date getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
|
||||
@ -272,7 +269,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
|
||||
@JsonProperty("uuid")
|
||||
public UUID getUuid() {
|
||||
@Valid public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@ -291,8 +288,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("password")
|
||||
@NotNull
|
||||
@Size(min=10,max=64) public String getPassword() {
|
||||
@NotNull @Size(min=10,max=64)public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
@ -311,7 +307,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("BigDecimal")
|
||||
public BigDecimal getBigDecimal() {
|
||||
@Valid public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
|
@ -19,8 +19,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("hasOnlyReadOnly")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class HasOnlyReadOnly implements Serializable {
|
||||
private @Valid String bar;
|
||||
private @Valid String foo;
|
||||
private String bar;
|
||||
private String foo;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -82,7 +82,7 @@ public class MapTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_of_string")
|
||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||
@Valid public Map<String, Map<String, String>> getMapMapOfString() {
|
||||
return mapMapOfString;
|
||||
}
|
||||
|
||||
|
@ -23,8 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("MixedPropertiesAndAdditionalPropertiesClass")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
||||
private @Valid UUID uuid;
|
||||
private @Valid Date dateTime;
|
||||
private UUID uuid;
|
||||
private Date dateTime;
|
||||
private @Valid Map<String, Animal> map = new HashMap<>();
|
||||
|
||||
/**
|
||||
@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("uuid")
|
||||
public UUID getUuid() {
|
||||
@Valid public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("dateTime")
|
||||
public Date getDateTime() {
|
||||
@Valid public Date getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map")
|
||||
public Map<String, Animal> getMap() {
|
||||
@Valid public Map<String, Animal> getMap() {
|
||||
return map;
|
||||
}
|
||||
|
||||
|
@ -21,8 +21,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("200_response")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Model200Response implements Serializable {
|
||||
private @Valid Integer name;
|
||||
private @Valid String propertyClass;
|
||||
private Integer name;
|
||||
private String propertyClass;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -19,9 +19,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("ApiResponse")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ModelApiResponse implements Serializable {
|
||||
private @Valid Integer code;
|
||||
private @Valid String type;
|
||||
private @Valid String message;
|
||||
private Integer code;
|
||||
private String type;
|
||||
private String message;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("File")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ModelFile implements Serializable {
|
||||
private @Valid String sourceURI;
|
||||
private String sourceURI;
|
||||
|
||||
/**
|
||||
* Test capitalization
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("List")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ModelList implements Serializable {
|
||||
private @Valid String _123list;
|
||||
private String _123list;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Return")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ModelReturn implements Serializable {
|
||||
private @Valid Integer _return;
|
||||
private Integer _return;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,10 +20,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Name")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Name implements Serializable {
|
||||
private @Valid Integer name;
|
||||
private @Valid Integer snakeCase;
|
||||
private @Valid String property;
|
||||
private @Valid Integer _123number;
|
||||
private Integer name;
|
||||
private Integer snakeCase;
|
||||
private String property;
|
||||
private Integer _123number;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -35,8 +35,7 @@ public class Name implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public Integer getName() {
|
||||
@NotNull public Integer getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("NumberOnly")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class NumberOnly implements Serializable {
|
||||
private @Valid BigDecimal justNumber;
|
||||
private BigDecimal justNumber;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -31,7 +31,7 @@ public class NumberOnly implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("JustNumber")
|
||||
public BigDecimal getJustNumber() {
|
||||
@Valid public BigDecimal getJustNumber() {
|
||||
return justNumber;
|
||||
}
|
||||
|
||||
|
@ -19,10 +19,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Order")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Order implements Serializable {
|
||||
private @Valid Long id;
|
||||
private @Valid Long petId;
|
||||
private @Valid Integer quantity;
|
||||
private @Valid Date shipDate;
|
||||
private Long id;
|
||||
private Long petId;
|
||||
private Integer quantity;
|
||||
private Date shipDate;
|
||||
public enum StatusEnum {
|
||||
|
||||
PLACED(String.valueOf("placed")), APPROVED(String.valueOf("approved")), DELIVERED(String.valueOf("delivered"));
|
||||
@ -70,8 +70,8 @@ public class Order implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid StatusEnum status;
|
||||
private @Valid Boolean complete = false;
|
||||
private StatusEnum status;
|
||||
private Boolean complete = false;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -140,7 +140,7 @@ public class Order implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("shipDate")
|
||||
public Date getShipDate() {
|
||||
@Valid public Date getShipDate() {
|
||||
return shipDate;
|
||||
}
|
||||
|
||||
|
@ -19,9 +19,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("OuterComposite")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class OuterComposite implements Serializable {
|
||||
private @Valid BigDecimal myNumber;
|
||||
private @Valid String myString;
|
||||
private @Valid Boolean myBoolean;
|
||||
private BigDecimal myNumber;
|
||||
private String myString;
|
||||
private Boolean myBoolean;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -33,7 +33,7 @@ public class OuterComposite implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("my_number")
|
||||
public BigDecimal getMyNumber() {
|
||||
@Valid public BigDecimal getMyNumber() {
|
||||
return myNumber;
|
||||
}
|
||||
|
||||
|
@ -26,9 +26,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Pet")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Pet implements Serializable {
|
||||
private @Valid Long id;
|
||||
private @Valid Category category;
|
||||
private @Valid String name;
|
||||
private Long id;
|
||||
private Category category;
|
||||
private String name;
|
||||
private @Valid Set<String> photoUrls = new LinkedHashSet<>();
|
||||
private @Valid List<@Valid Tag> tags = new ArrayList<>();
|
||||
public enum StatusEnum {
|
||||
@ -78,7 +78,7 @@ public class Pet implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid StatusEnum status;
|
||||
private StatusEnum status;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -109,7 +109,7 @@ public class Pet implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("category")
|
||||
public Category getCategory() {
|
||||
@Valid public Category getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
@ -128,8 +128,7 @@ public class Pet implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public String getName() {
|
||||
@NotNull public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@ -148,8 +147,7 @@ public class Pet implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("photoUrls")
|
||||
@NotNull
|
||||
public Set<String> getPhotoUrls() {
|
||||
@NotNull public Set<String> getPhotoUrls() {
|
||||
return photoUrls;
|
||||
}
|
||||
|
||||
@ -185,7 +183,7 @@ public class Pet implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("tags")
|
||||
public List<Tag> getTags() {
|
||||
@Valid public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
|
@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("ReadOnlyFirst")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ReadOnlyFirst implements Serializable {
|
||||
private @Valid String bar;
|
||||
private @Valid String baz;
|
||||
private String bar;
|
||||
private String baz;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("$special[model.name]")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class SpecialModelName implements Serializable {
|
||||
private @Valid Long $specialPropertyName;
|
||||
private Long $specialPropertyName;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Tag")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Tag implements Serializable {
|
||||
private @Valid Long id;
|
||||
private @Valid String name;
|
||||
private Long id;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -22,10 +22,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("TypeHolderDefault")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class TypeHolderDefault implements Serializable {
|
||||
private @Valid String stringItem = "what";
|
||||
private @Valid BigDecimal numberItem;
|
||||
private @Valid Integer integerItem;
|
||||
private @Valid Boolean boolItem = true;
|
||||
private String stringItem = "what";
|
||||
private BigDecimal numberItem;
|
||||
private Integer integerItem;
|
||||
private Boolean boolItem = true;
|
||||
private @Valid List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -38,8 +38,7 @@ public class TypeHolderDefault implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("string_item")
|
||||
@NotNull
|
||||
public String getStringItem() {
|
||||
@NotNull public String getStringItem() {
|
||||
return stringItem;
|
||||
}
|
||||
|
||||
@ -58,8 +57,7 @@ public class TypeHolderDefault implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("number_item")
|
||||
@NotNull
|
||||
public BigDecimal getNumberItem() {
|
||||
@NotNull @Valid public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
}
|
||||
|
||||
@ -78,8 +76,7 @@ public class TypeHolderDefault implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("integer_item")
|
||||
@NotNull
|
||||
public Integer getIntegerItem() {
|
||||
@NotNull public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
}
|
||||
|
||||
@ -98,8 +95,7 @@ public class TypeHolderDefault implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("bool_item")
|
||||
@NotNull
|
||||
public Boolean getBoolItem() {
|
||||
@NotNull public Boolean getBoolItem() {
|
||||
return boolItem;
|
||||
}
|
||||
|
||||
@ -118,8 +114,7 @@ public class TypeHolderDefault implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("array_item")
|
||||
@NotNull
|
||||
public List<Integer> getArrayItem() {
|
||||
@NotNull public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
}
|
||||
|
||||
|
@ -22,11 +22,11 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("TypeHolderExample")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class TypeHolderExample implements Serializable {
|
||||
private @Valid String stringItem;
|
||||
private @Valid BigDecimal numberItem;
|
||||
private @Valid Float floatItem;
|
||||
private @Valid Integer integerItem;
|
||||
private @Valid Boolean boolItem;
|
||||
private String stringItem;
|
||||
private BigDecimal numberItem;
|
||||
private Float floatItem;
|
||||
private Integer integerItem;
|
||||
private Boolean boolItem;
|
||||
private @Valid List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -39,8 +39,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "what", required = true, value = "")
|
||||
@JsonProperty("string_item")
|
||||
@NotNull
|
||||
public String getStringItem() {
|
||||
@NotNull public String getStringItem() {
|
||||
return stringItem;
|
||||
}
|
||||
|
||||
@ -59,8 +58,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", required = true, value = "")
|
||||
@JsonProperty("number_item")
|
||||
@NotNull
|
||||
public BigDecimal getNumberItem() {
|
||||
@NotNull @Valid public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
}
|
||||
|
||||
@ -79,8 +77,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", required = true, value = "")
|
||||
@JsonProperty("float_item")
|
||||
@NotNull
|
||||
public Float getFloatItem() {
|
||||
@NotNull public Float getFloatItem() {
|
||||
return floatItem;
|
||||
}
|
||||
|
||||
@ -99,8 +96,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "-2", required = true, value = "")
|
||||
@JsonProperty("integer_item")
|
||||
@NotNull
|
||||
public Integer getIntegerItem() {
|
||||
@NotNull public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
}
|
||||
|
||||
@ -119,8 +115,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "true", required = true, value = "")
|
||||
@JsonProperty("bool_item")
|
||||
@NotNull
|
||||
public Boolean getBoolItem() {
|
||||
@NotNull public Boolean getBoolItem() {
|
||||
return boolItem;
|
||||
}
|
||||
|
||||
@ -139,8 +134,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
|
||||
@JsonProperty("array_item")
|
||||
@NotNull
|
||||
public List<Integer> getArrayItem() {
|
||||
@NotNull public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
}
|
||||
|
||||
|
@ -18,14 +18,14 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("User")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class User implements Serializable {
|
||||
private @Valid Long id;
|
||||
private @Valid String username;
|
||||
private @Valid String firstName;
|
||||
private @Valid String lastName;
|
||||
private @Valid String email;
|
||||
private @Valid String password;
|
||||
private @Valid String phone;
|
||||
private @Valid Integer userStatus;
|
||||
private Long id;
|
||||
private String username;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
private String email;
|
||||
private String password;
|
||||
private String phone;
|
||||
private Integer userStatus;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -22,33 +22,33 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("XmlItem")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class XmlItem implements Serializable {
|
||||
private @Valid String attributeString;
|
||||
private @Valid BigDecimal attributeNumber;
|
||||
private @Valid Integer attributeInteger;
|
||||
private @Valid Boolean attributeBoolean;
|
||||
private String attributeString;
|
||||
private BigDecimal attributeNumber;
|
||||
private Integer attributeInteger;
|
||||
private Boolean attributeBoolean;
|
||||
private @Valid List<Integer> wrappedArray = new ArrayList<>();
|
||||
private @Valid String nameString;
|
||||
private @Valid BigDecimal nameNumber;
|
||||
private @Valid Integer nameInteger;
|
||||
private @Valid Boolean nameBoolean;
|
||||
private String nameString;
|
||||
private BigDecimal nameNumber;
|
||||
private Integer nameInteger;
|
||||
private Boolean nameBoolean;
|
||||
private @Valid List<Integer> nameArray = new ArrayList<>();
|
||||
private @Valid List<Integer> nameWrappedArray = new ArrayList<>();
|
||||
private @Valid String prefixString;
|
||||
private @Valid BigDecimal prefixNumber;
|
||||
private @Valid Integer prefixInteger;
|
||||
private @Valid Boolean prefixBoolean;
|
||||
private String prefixString;
|
||||
private BigDecimal prefixNumber;
|
||||
private Integer prefixInteger;
|
||||
private Boolean prefixBoolean;
|
||||
private @Valid List<Integer> prefixArray = new ArrayList<>();
|
||||
private @Valid List<Integer> prefixWrappedArray = new ArrayList<>();
|
||||
private @Valid String namespaceString;
|
||||
private @Valid BigDecimal namespaceNumber;
|
||||
private @Valid Integer namespaceInteger;
|
||||
private @Valid Boolean namespaceBoolean;
|
||||
private String namespaceString;
|
||||
private BigDecimal namespaceNumber;
|
||||
private Integer namespaceInteger;
|
||||
private Boolean namespaceBoolean;
|
||||
private @Valid List<Integer> namespaceArray = new ArrayList<>();
|
||||
private @Valid List<Integer> namespaceWrappedArray = new ArrayList<>();
|
||||
private @Valid String prefixNsString;
|
||||
private @Valid BigDecimal prefixNsNumber;
|
||||
private @Valid Integer prefixNsInteger;
|
||||
private @Valid Boolean prefixNsBoolean;
|
||||
private String prefixNsString;
|
||||
private BigDecimal prefixNsNumber;
|
||||
private Integer prefixNsInteger;
|
||||
private Boolean prefixNsBoolean;
|
||||
private @Valid List<Integer> prefixNsArray = new ArrayList<>();
|
||||
private @Valid List<Integer> prefixNsWrappedArray = new ArrayList<>();
|
||||
|
||||
@ -81,7 +81,7 @@ public class XmlItem implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("attribute_number")
|
||||
public BigDecimal getAttributeNumber() {
|
||||
@Valid public BigDecimal getAttributeNumber() {
|
||||
return attributeNumber;
|
||||
}
|
||||
|
||||
@ -192,7 +192,7 @@ public class XmlItem implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("name_number")
|
||||
public BigDecimal getNameNumber() {
|
||||
@Valid public BigDecimal getNameNumber() {
|
||||
return nameNumber;
|
||||
}
|
||||
|
||||
@ -338,7 +338,7 @@ public class XmlItem implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("prefix_number")
|
||||
public BigDecimal getPrefixNumber() {
|
||||
@Valid public BigDecimal getPrefixNumber() {
|
||||
return prefixNumber;
|
||||
}
|
||||
|
||||
@ -484,7 +484,7 @@ public class XmlItem implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("namespace_number")
|
||||
public BigDecimal getNamespaceNumber() {
|
||||
@Valid public BigDecimal getNamespaceNumber() {
|
||||
return namespaceNumber;
|
||||
}
|
||||
|
||||
@ -630,7 +630,7 @@ public class XmlItem implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("prefix_ns_number")
|
||||
public BigDecimal getPrefixNsNumber() {
|
||||
@Valid public BigDecimal getPrefixNsNumber() {
|
||||
return prefixNsNumber;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesAnyType")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesArray")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesBoolean")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -30,9 +30,9 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
private @Valid Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||
private @Valid Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||
private @Valid Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||
private @Valid Object anytype1;
|
||||
private @Valid Object anytype2;
|
||||
private @Valid Object anytype3;
|
||||
private Object anytype1;
|
||||
private Object anytype2;
|
||||
private Object anytype3;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -79,7 +79,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_number")
|
||||
public Map<String, BigDecimal> getMapNumber() {
|
||||
@Valid public Map<String, BigDecimal> getMapNumber() {
|
||||
return mapNumber;
|
||||
}
|
||||
|
||||
@ -184,7 +184,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_array_integer")
|
||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
@Valid public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
return mapArrayInteger;
|
||||
}
|
||||
|
||||
@ -219,7 +219,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_array_anytype")
|
||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
@Valid public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
return mapArrayAnytype;
|
||||
}
|
||||
|
||||
@ -254,7 +254,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_string")
|
||||
public Map<String, Map<String, String>> getMapMapString() {
|
||||
@Valid public Map<String, Map<String, String>> getMapMapString() {
|
||||
return mapMapString;
|
||||
}
|
||||
|
||||
@ -289,7 +289,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_anytype")
|
||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
@Valid public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
return mapMapAnytype;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesInteger")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesNumber")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesObject")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesString")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -27,8 +27,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Animal")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Animal implements Serializable {
|
||||
private @Valid String className;
|
||||
private @Valid String color = "red";
|
||||
private String className;
|
||||
private String color = "red";
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -40,8 +40,7 @@ public class Animal implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("className")
|
||||
@NotNull
|
||||
public String getClassName() {
|
||||
@NotNull public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||
@Valid public List<@Valid List<@Valid BigDecimal>> getArrayArrayNumber() {
|
||||
return arrayArrayNumber;
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ public class ArrayOfNumberOnly implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("ArrayNumber")
|
||||
public List<BigDecimal> getArrayNumber() {
|
||||
@Valid public List<@Valid BigDecimal> getArrayNumber() {
|
||||
return arrayNumber;
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ public class ArrayTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("array_array_of_integer")
|
||||
public List<List<Long>> getArrayArrayOfInteger() {
|
||||
@Valid public List<List<Long>> getArrayArrayOfInteger() {
|
||||
return arrayArrayOfInteger;
|
||||
}
|
||||
|
||||
@ -106,7 +106,7 @@ public class ArrayTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("array_array_of_model")
|
||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
@Valid public List<@Valid List<@Valid ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||
return arrayArrayOfModel;
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ public class BigCat extends Cat implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid KindEnum kind;
|
||||
private KindEnum kind;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -18,12 +18,12 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Capitalization")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Capitalization implements Serializable {
|
||||
private @Valid String smallCamel;
|
||||
private @Valid String capitalCamel;
|
||||
private @Valid String smallSnake;
|
||||
private @Valid String capitalSnake;
|
||||
private @Valid String scAETHFlowPoints;
|
||||
private @Valid String ATT_NAME;
|
||||
private String smallCamel;
|
||||
private String capitalCamel;
|
||||
private String smallSnake;
|
||||
private String capitalSnake;
|
||||
private String scAETHFlowPoints;
|
||||
private String ATT_NAME;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Cat")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Cat extends Animal implements Serializable {
|
||||
private @Valid Boolean declawed;
|
||||
private Boolean declawed;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Category")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Category implements Serializable {
|
||||
private @Valid Long id;
|
||||
private @Valid String name = "default-name";
|
||||
private Long id;
|
||||
private String name = "default-name";
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -50,8 +50,7 @@ public class Category implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public String getName() {
|
||||
@NotNull public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("ClassModel")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ClassModel implements Serializable {
|
||||
private @Valid String propertyClass;
|
||||
private String propertyClass;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -18,7 +18,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Client")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Client implements Serializable {
|
||||
private @Valid String client;
|
||||
private String client;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Dog")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Dog extends Animal implements Serializable {
|
||||
private @Valid String breed;
|
||||
private String breed;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -68,7 +68,7 @@ public class EnumArrays implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid JustSymbolEnum justSymbol;
|
||||
private JustSymbolEnum justSymbol;
|
||||
public enum ArrayEnumEnum {
|
||||
|
||||
FISH(String.valueOf("fish")), CRAB(String.valueOf("crab"));
|
||||
|
@ -67,7 +67,7 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid EnumStringEnum enumString;
|
||||
private EnumStringEnum enumString;
|
||||
public enum EnumStringRequiredEnum {
|
||||
|
||||
UPPER(String.valueOf("UPPER")), LOWER(String.valueOf("lower")), EMPTY(String.valueOf(""));
|
||||
@ -115,7 +115,7 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid EnumStringRequiredEnum enumStringRequired;
|
||||
private EnumStringRequiredEnum enumStringRequired;
|
||||
public enum EnumIntegerEnum {
|
||||
|
||||
NUMBER_1(Integer.valueOf(1)), NUMBER_MINUS_1(Integer.valueOf(-1));
|
||||
@ -163,7 +163,7 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid EnumIntegerEnum enumInteger;
|
||||
private EnumIntegerEnum enumInteger;
|
||||
public enum EnumNumberEnum {
|
||||
|
||||
NUMBER_1_DOT_1(Double.valueOf(1.1)), NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2));
|
||||
@ -211,8 +211,8 @@ public class EnumTest implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid EnumNumberEnum enumNumber;
|
||||
private @Valid OuterEnum outerEnum;
|
||||
private EnumNumberEnum enumNumber;
|
||||
private OuterEnum outerEnum;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -243,8 +243,7 @@ public class EnumTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("enum_string_required")
|
||||
@NotNull
|
||||
public EnumStringRequiredEnum getEnumStringRequired() {
|
||||
@NotNull public EnumStringRequiredEnum getEnumStringRequired() {
|
||||
return enumStringRequired;
|
||||
}
|
||||
|
||||
@ -301,7 +300,7 @@ public class EnumTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("outerEnum")
|
||||
public OuterEnum getOuterEnum() {
|
||||
@Valid public OuterEnum getOuterEnum() {
|
||||
return outerEnum;
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("FileSchemaTestClass")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class FileSchemaTestClass implements Serializable {
|
||||
private @Valid ModelFile _file;
|
||||
private ModelFile _file;
|
||||
private @Valid List<@Valid ModelFile> files = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -35,7 +35,7 @@ public class FileSchemaTestClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("file")
|
||||
public ModelFile getFile() {
|
||||
@Valid public ModelFile getFile() {
|
||||
return _file;
|
||||
}
|
||||
|
||||
@ -54,7 +54,7 @@ public class FileSchemaTestClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("files")
|
||||
public List<ModelFile> getFiles() {
|
||||
@Valid public List<@Valid ModelFile> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
|
@ -25,20 +25,20 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("format_test")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class FormatTest implements Serializable {
|
||||
private @Valid Integer integer;
|
||||
private @Valid Integer int32;
|
||||
private @Valid Long int64;
|
||||
private @Valid BigDecimal number;
|
||||
private @Valid Float _float;
|
||||
private @Valid Double _double;
|
||||
private @Valid String string;
|
||||
private @Valid byte[] _byte;
|
||||
private @Valid File binary;
|
||||
private @Valid LocalDate date;
|
||||
private @Valid Date dateTime;
|
||||
private @Valid UUID uuid;
|
||||
private @Valid String password;
|
||||
private @Valid BigDecimal bigDecimal;
|
||||
private Integer integer;
|
||||
private Integer int32;
|
||||
private Long int64;
|
||||
private BigDecimal number;
|
||||
private Float _float;
|
||||
private Double _double;
|
||||
private String string;
|
||||
private byte[] _byte;
|
||||
private File binary;
|
||||
private LocalDate date;
|
||||
private Date dateTime;
|
||||
private UUID uuid;
|
||||
private String password;
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
/**
|
||||
* minimum: 10
|
||||
@ -52,7 +52,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("integer")
|
||||
@Min(10) @Max(100) public Integer getInteger() {
|
||||
@Min(10) @Max(100)public Integer getInteger() {
|
||||
return integer;
|
||||
}
|
||||
|
||||
@ -73,7 +73,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("int32")
|
||||
@Min(20) @Max(200) public Integer getInt32() {
|
||||
@Min(20) @Max(200)public Integer getInt32() {
|
||||
return int32;
|
||||
}
|
||||
|
||||
@ -113,8 +113,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("number")
|
||||
@NotNull
|
||||
@DecimalMin("32.1") @DecimalMax("543.2") public BigDecimal getNumber() {
|
||||
@NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")public BigDecimal getNumber() {
|
||||
return number;
|
||||
}
|
||||
|
||||
@ -135,7 +134,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("float")
|
||||
@DecimalMin("54.3") @DecimalMax("987.6") public Float getFloat() {
|
||||
@DecimalMin("54.3") @DecimalMax("987.6")public Float getFloat() {
|
||||
return _float;
|
||||
}
|
||||
|
||||
@ -156,7 +155,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("double")
|
||||
@DecimalMin("67.8") @DecimalMax("123.4") public Double getDouble() {
|
||||
@DecimalMin("67.8") @DecimalMax("123.4")public Double getDouble() {
|
||||
return _double;
|
||||
}
|
||||
|
||||
@ -175,7 +174,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("string")
|
||||
@Pattern(regexp="/[a-z]/i") public String getString() {
|
||||
@Pattern(regexp="/[a-z]/i")public String getString() {
|
||||
return string;
|
||||
}
|
||||
|
||||
@ -194,8 +193,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("byte")
|
||||
@NotNull
|
||||
@Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$") public byte[] getByte() {
|
||||
@NotNull @Pattern(regexp="^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$")public byte[] getByte() {
|
||||
return _byte;
|
||||
}
|
||||
|
||||
@ -214,7 +212,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("binary")
|
||||
public File getBinary() {
|
||||
@Valid public File getBinary() {
|
||||
return binary;
|
||||
}
|
||||
|
||||
@ -233,8 +231,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("date")
|
||||
@NotNull
|
||||
public LocalDate getDate() {
|
||||
@NotNull @Valid public LocalDate getDate() {
|
||||
return date;
|
||||
}
|
||||
|
||||
@ -253,7 +250,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("dateTime")
|
||||
public Date getDateTime() {
|
||||
@Valid public Date getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
|
||||
@ -272,7 +269,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
|
||||
@JsonProperty("uuid")
|
||||
public UUID getUuid() {
|
||||
@Valid public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@ -291,8 +288,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("password")
|
||||
@NotNull
|
||||
@Size(min=10,max=64) public String getPassword() {
|
||||
@NotNull @Size(min=10,max=64)public String getPassword() {
|
||||
return password;
|
||||
}
|
||||
|
||||
@ -311,7 +307,7 @@ public class FormatTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("BigDecimal")
|
||||
public BigDecimal getBigDecimal() {
|
||||
@Valid public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
}
|
||||
|
||||
|
@ -19,8 +19,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("hasOnlyReadOnly")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class HasOnlyReadOnly implements Serializable {
|
||||
private @Valid String bar;
|
||||
private @Valid String foo;
|
||||
private String bar;
|
||||
private String foo;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -82,7 +82,7 @@ public class MapTest implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_of_string")
|
||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||
@Valid public Map<String, Map<String, String>> getMapMapOfString() {
|
||||
return mapMapOfString;
|
||||
}
|
||||
|
||||
|
@ -23,8 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("MixedPropertiesAndAdditionalPropertiesClass")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass implements Serializable {
|
||||
private @Valid UUID uuid;
|
||||
private @Valid Date dateTime;
|
||||
private UUID uuid;
|
||||
private Date dateTime;
|
||||
private @Valid Map<String, Animal> map = new HashMap<>();
|
||||
|
||||
/**
|
||||
@ -37,7 +37,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("uuid")
|
||||
public UUID getUuid() {
|
||||
@Valid public UUID getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("dateTime")
|
||||
public Date getDateTime() {
|
||||
@Valid public Date getDateTime() {
|
||||
return dateTime;
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass implements Serializabl
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map")
|
||||
public Map<String, Animal> getMap() {
|
||||
@Valid public Map<String, Animal> getMap() {
|
||||
return map;
|
||||
}
|
||||
|
||||
|
@ -21,8 +21,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("200_response")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Model200Response implements Serializable {
|
||||
private @Valid Integer name;
|
||||
private @Valid String propertyClass;
|
||||
private Integer name;
|
||||
private String propertyClass;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -19,9 +19,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("ApiResponse")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ModelApiResponse implements Serializable {
|
||||
private @Valid Integer code;
|
||||
private @Valid String type;
|
||||
private @Valid String message;
|
||||
private Integer code;
|
||||
private String type;
|
||||
private String message;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("File")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ModelFile implements Serializable {
|
||||
private @Valid String sourceURI;
|
||||
private String sourceURI;
|
||||
|
||||
/**
|
||||
* Test capitalization
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("List")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ModelList implements Serializable {
|
||||
private @Valid String _123list;
|
||||
private String _123list;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Return")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ModelReturn implements Serializable {
|
||||
private @Valid Integer _return;
|
||||
private Integer _return;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,10 +20,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Name")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Name implements Serializable {
|
||||
private @Valid Integer name;
|
||||
private @Valid Integer snakeCase;
|
||||
private @Valid String property;
|
||||
private @Valid Integer _123number;
|
||||
private Integer name;
|
||||
private Integer snakeCase;
|
||||
private String property;
|
||||
private Integer _123number;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -35,8 +35,7 @@ public class Name implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public Integer getName() {
|
||||
@NotNull public Integer getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("NumberOnly")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class NumberOnly implements Serializable {
|
||||
private @Valid BigDecimal justNumber;
|
||||
private BigDecimal justNumber;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -31,7 +31,7 @@ public class NumberOnly implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("JustNumber")
|
||||
public BigDecimal getJustNumber() {
|
||||
@Valid public BigDecimal getJustNumber() {
|
||||
return justNumber;
|
||||
}
|
||||
|
||||
|
@ -19,10 +19,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Order")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Order implements Serializable {
|
||||
private @Valid Long id;
|
||||
private @Valid Long petId;
|
||||
private @Valid Integer quantity;
|
||||
private @Valid Date shipDate;
|
||||
private Long id;
|
||||
private Long petId;
|
||||
private Integer quantity;
|
||||
private Date shipDate;
|
||||
public enum StatusEnum {
|
||||
|
||||
PLACED(String.valueOf("placed")), APPROVED(String.valueOf("approved")), DELIVERED(String.valueOf("delivered"));
|
||||
@ -70,8 +70,8 @@ public class Order implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid StatusEnum status;
|
||||
private @Valid Boolean complete = false;
|
||||
private StatusEnum status;
|
||||
private Boolean complete = false;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -140,7 +140,7 @@ public class Order implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("shipDate")
|
||||
public Date getShipDate() {
|
||||
@Valid public Date getShipDate() {
|
||||
return shipDate;
|
||||
}
|
||||
|
||||
|
@ -19,9 +19,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("OuterComposite")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class OuterComposite implements Serializable {
|
||||
private @Valid BigDecimal myNumber;
|
||||
private @Valid String myString;
|
||||
private @Valid Boolean myBoolean;
|
||||
private BigDecimal myNumber;
|
||||
private String myString;
|
||||
private Boolean myBoolean;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -33,7 +33,7 @@ public class OuterComposite implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("my_number")
|
||||
public BigDecimal getMyNumber() {
|
||||
@Valid public BigDecimal getMyNumber() {
|
||||
return myNumber;
|
||||
}
|
||||
|
||||
|
@ -26,9 +26,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Pet")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Pet implements Serializable {
|
||||
private @Valid Long id;
|
||||
private @Valid Category category;
|
||||
private @Valid String name;
|
||||
private Long id;
|
||||
private Category category;
|
||||
private String name;
|
||||
private @Valid Set<String> photoUrls = new LinkedHashSet<>();
|
||||
private @Valid List<@Valid Tag> tags = new ArrayList<>();
|
||||
public enum StatusEnum {
|
||||
@ -78,7 +78,7 @@ public class Pet implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
private @Valid StatusEnum status;
|
||||
private StatusEnum status;
|
||||
|
||||
/**
|
||||
**/
|
||||
@ -109,7 +109,7 @@ public class Pet implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("category")
|
||||
public Category getCategory() {
|
||||
@Valid public Category getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
@ -128,8 +128,7 @@ public class Pet implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||
@JsonProperty("name")
|
||||
@NotNull
|
||||
public String getName() {
|
||||
@NotNull public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
@ -148,8 +147,7 @@ public class Pet implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("photoUrls")
|
||||
@NotNull
|
||||
public Set<String> getPhotoUrls() {
|
||||
@NotNull public Set<String> getPhotoUrls() {
|
||||
return photoUrls;
|
||||
}
|
||||
|
||||
@ -185,7 +183,7 @@ public class Pet implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("tags")
|
||||
public List<Tag> getTags() {
|
||||
@Valid public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
|
@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("ReadOnlyFirst")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class ReadOnlyFirst implements Serializable {
|
||||
private @Valid String bar;
|
||||
private @Valid String baz;
|
||||
private String bar;
|
||||
private String baz;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -19,7 +19,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("$special[model.name]")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class SpecialModelName implements Serializable {
|
||||
private @Valid Long $specialPropertyName;
|
||||
private Long $specialPropertyName;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -18,8 +18,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Tag")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Tag implements Serializable {
|
||||
private @Valid Long id;
|
||||
private @Valid String name;
|
||||
private Long id;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -22,10 +22,10 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("TypeHolderDefault")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class TypeHolderDefault implements Serializable {
|
||||
private @Valid String stringItem = "what";
|
||||
private @Valid BigDecimal numberItem;
|
||||
private @Valid Integer integerItem;
|
||||
private @Valid Boolean boolItem = true;
|
||||
private String stringItem = "what";
|
||||
private BigDecimal numberItem;
|
||||
private Integer integerItem;
|
||||
private Boolean boolItem = true;
|
||||
private @Valid List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -38,8 +38,7 @@ public class TypeHolderDefault implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("string_item")
|
||||
@NotNull
|
||||
public String getStringItem() {
|
||||
@NotNull public String getStringItem() {
|
||||
return stringItem;
|
||||
}
|
||||
|
||||
@ -58,8 +57,7 @@ public class TypeHolderDefault implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("number_item")
|
||||
@NotNull
|
||||
public BigDecimal getNumberItem() {
|
||||
@NotNull @Valid public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
}
|
||||
|
||||
@ -78,8 +76,7 @@ public class TypeHolderDefault implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("integer_item")
|
||||
@NotNull
|
||||
public Integer getIntegerItem() {
|
||||
@NotNull public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
}
|
||||
|
||||
@ -98,8 +95,7 @@ public class TypeHolderDefault implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("bool_item")
|
||||
@NotNull
|
||||
public Boolean getBoolItem() {
|
||||
@NotNull public Boolean getBoolItem() {
|
||||
return boolItem;
|
||||
}
|
||||
|
||||
@ -118,8 +114,7 @@ public class TypeHolderDefault implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("array_item")
|
||||
@NotNull
|
||||
public List<Integer> getArrayItem() {
|
||||
@NotNull public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
}
|
||||
|
||||
|
@ -22,11 +22,11 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("TypeHolderExample")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class TypeHolderExample implements Serializable {
|
||||
private @Valid String stringItem;
|
||||
private @Valid BigDecimal numberItem;
|
||||
private @Valid Float floatItem;
|
||||
private @Valid Integer integerItem;
|
||||
private @Valid Boolean boolItem;
|
||||
private String stringItem;
|
||||
private BigDecimal numberItem;
|
||||
private Float floatItem;
|
||||
private Integer integerItem;
|
||||
private Boolean boolItem;
|
||||
private @Valid List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -39,8 +39,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "what", required = true, value = "")
|
||||
@JsonProperty("string_item")
|
||||
@NotNull
|
||||
public String getStringItem() {
|
||||
@NotNull public String getStringItem() {
|
||||
return stringItem;
|
||||
}
|
||||
|
||||
@ -59,8 +58,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", required = true, value = "")
|
||||
@JsonProperty("number_item")
|
||||
@NotNull
|
||||
public BigDecimal getNumberItem() {
|
||||
@NotNull @Valid public BigDecimal getNumberItem() {
|
||||
return numberItem;
|
||||
}
|
||||
|
||||
@ -79,8 +77,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", required = true, value = "")
|
||||
@JsonProperty("float_item")
|
||||
@NotNull
|
||||
public Float getFloatItem() {
|
||||
@NotNull public Float getFloatItem() {
|
||||
return floatItem;
|
||||
}
|
||||
|
||||
@ -99,8 +96,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "-2", required = true, value = "")
|
||||
@JsonProperty("integer_item")
|
||||
@NotNull
|
||||
public Integer getIntegerItem() {
|
||||
@NotNull public Integer getIntegerItem() {
|
||||
return integerItem;
|
||||
}
|
||||
|
||||
@ -119,8 +115,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "true", required = true, value = "")
|
||||
@JsonProperty("bool_item")
|
||||
@NotNull
|
||||
public Boolean getBoolItem() {
|
||||
@NotNull public Boolean getBoolItem() {
|
||||
return boolItem;
|
||||
}
|
||||
|
||||
@ -139,8 +134,7 @@ public class TypeHolderExample implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
|
||||
@JsonProperty("array_item")
|
||||
@NotNull
|
||||
public List<Integer> getArrayItem() {
|
||||
@NotNull public List<Integer> getArrayItem() {
|
||||
return arrayItem;
|
||||
}
|
||||
|
||||
|
@ -18,14 +18,14 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("User")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class User implements Serializable {
|
||||
private @Valid Long id;
|
||||
private @Valid String username;
|
||||
private @Valid String firstName;
|
||||
private @Valid String lastName;
|
||||
private @Valid String email;
|
||||
private @Valid String password;
|
||||
private @Valid String phone;
|
||||
private @Valid Integer userStatus;
|
||||
private Long id;
|
||||
private String username;
|
||||
private String firstName;
|
||||
private String lastName;
|
||||
private String email;
|
||||
private String password;
|
||||
private String phone;
|
||||
private Integer userStatus;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -22,33 +22,33 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("XmlItem")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class XmlItem implements Serializable {
|
||||
private @Valid String attributeString;
|
||||
private @Valid BigDecimal attributeNumber;
|
||||
private @Valid Integer attributeInteger;
|
||||
private @Valid Boolean attributeBoolean;
|
||||
private String attributeString;
|
||||
private BigDecimal attributeNumber;
|
||||
private Integer attributeInteger;
|
||||
private Boolean attributeBoolean;
|
||||
private @Valid List<Integer> wrappedArray = new ArrayList<>();
|
||||
private @Valid String nameString;
|
||||
private @Valid BigDecimal nameNumber;
|
||||
private @Valid Integer nameInteger;
|
||||
private @Valid Boolean nameBoolean;
|
||||
private String nameString;
|
||||
private BigDecimal nameNumber;
|
||||
private Integer nameInteger;
|
||||
private Boolean nameBoolean;
|
||||
private @Valid List<Integer> nameArray = new ArrayList<>();
|
||||
private @Valid List<Integer> nameWrappedArray = new ArrayList<>();
|
||||
private @Valid String prefixString;
|
||||
private @Valid BigDecimal prefixNumber;
|
||||
private @Valid Integer prefixInteger;
|
||||
private @Valid Boolean prefixBoolean;
|
||||
private String prefixString;
|
||||
private BigDecimal prefixNumber;
|
||||
private Integer prefixInteger;
|
||||
private Boolean prefixBoolean;
|
||||
private @Valid List<Integer> prefixArray = new ArrayList<>();
|
||||
private @Valid List<Integer> prefixWrappedArray = new ArrayList<>();
|
||||
private @Valid String namespaceString;
|
||||
private @Valid BigDecimal namespaceNumber;
|
||||
private @Valid Integer namespaceInteger;
|
||||
private @Valid Boolean namespaceBoolean;
|
||||
private String namespaceString;
|
||||
private BigDecimal namespaceNumber;
|
||||
private Integer namespaceInteger;
|
||||
private Boolean namespaceBoolean;
|
||||
private @Valid List<Integer> namespaceArray = new ArrayList<>();
|
||||
private @Valid List<Integer> namespaceWrappedArray = new ArrayList<>();
|
||||
private @Valid String prefixNsString;
|
||||
private @Valid BigDecimal prefixNsNumber;
|
||||
private @Valid Integer prefixNsInteger;
|
||||
private @Valid Boolean prefixNsBoolean;
|
||||
private String prefixNsString;
|
||||
private BigDecimal prefixNsNumber;
|
||||
private Integer prefixNsInteger;
|
||||
private Boolean prefixNsBoolean;
|
||||
private @Valid List<Integer> prefixNsArray = new ArrayList<>();
|
||||
private @Valid List<Integer> prefixNsWrappedArray = new ArrayList<>();
|
||||
|
||||
@ -81,7 +81,7 @@ public class XmlItem implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("attribute_number")
|
||||
public BigDecimal getAttributeNumber() {
|
||||
@Valid public BigDecimal getAttributeNumber() {
|
||||
return attributeNumber;
|
||||
}
|
||||
|
||||
@ -192,7 +192,7 @@ public class XmlItem implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("name_number")
|
||||
public BigDecimal getNameNumber() {
|
||||
@Valid public BigDecimal getNameNumber() {
|
||||
return nameNumber;
|
||||
}
|
||||
|
||||
@ -338,7 +338,7 @@ public class XmlItem implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("prefix_number")
|
||||
public BigDecimal getPrefixNumber() {
|
||||
@Valid public BigDecimal getPrefixNumber() {
|
||||
return prefixNumber;
|
||||
}
|
||||
|
||||
@ -484,7 +484,7 @@ public class XmlItem implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("namespace_number")
|
||||
public BigDecimal getNamespaceNumber() {
|
||||
@Valid public BigDecimal getNamespaceNumber() {
|
||||
return namespaceNumber;
|
||||
}
|
||||
|
||||
@ -630,7 +630,7 @@ public class XmlItem implements Serializable {
|
||||
|
||||
@ApiModelProperty(example = "1.234", value = "")
|
||||
@JsonProperty("prefix_ns_number")
|
||||
public BigDecimal getPrefixNsNumber() {
|
||||
@Valid public BigDecimal getPrefixNsNumber() {
|
||||
return prefixNsNumber;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesAnyType")
|
||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesArray")
|
||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesBoolean")
|
||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -30,9 +30,9 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
private @Valid Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||
private @Valid Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||
private @Valid Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||
private @Valid Object anytype1;
|
||||
private @Valid Object anytype2;
|
||||
private @Valid Object anytype3;
|
||||
private Object anytype1;
|
||||
private Object anytype2;
|
||||
private Object anytype3;
|
||||
|
||||
protected AdditionalPropertiesClass(AdditionalPropertiesClassBuilder<?, ?> b) {
|
||||
this.mapString = b.mapString;
|
||||
@ -96,7 +96,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_number")
|
||||
public Map<String, BigDecimal> getMapNumber() {
|
||||
@Valid public Map<String, BigDecimal> getMapNumber() {
|
||||
return mapNumber;
|
||||
}
|
||||
|
||||
@ -201,7 +201,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_array_integer")
|
||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
@Valid public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
return mapArrayInteger;
|
||||
}
|
||||
|
||||
@ -236,7 +236,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_array_anytype")
|
||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
@Valid public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
return mapArrayAnytype;
|
||||
}
|
||||
|
||||
@ -271,7 +271,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_string")
|
||||
public Map<String, Map<String, String>> getMapMapString() {
|
||||
@Valid public Map<String, Map<String, String>> getMapMapString() {
|
||||
return mapMapString;
|
||||
}
|
||||
|
||||
@ -306,7 +306,7 @@ public class AdditionalPropertiesClass implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("map_map_anytype")
|
||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
@Valid public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
return mapMapAnytype;
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesInteger")
|
||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -21,7 +21,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesNumber")
|
||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesObject")
|
||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -20,7 +20,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("AdditionalPropertiesString")
|
||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> implements Serializable {
|
||||
private @Valid String name;
|
||||
private String name;
|
||||
|
||||
/**
|
||||
**/
|
||||
|
@ -27,8 +27,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@JsonTypeName("Animal")
|
||||
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaJAXRSSpecServerCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
|
||||
public class Animal implements Serializable {
|
||||
private @Valid String className;
|
||||
private @Valid String color = "red";
|
||||
private String className;
|
||||
private String color = "red";
|
||||
|
||||
protected Animal(AnimalBuilder<?, ?> b) {
|
||||
this.className = b.className;
|
||||
@ -48,8 +48,7 @@ public class Animal implements Serializable {
|
||||
|
||||
@ApiModelProperty(required = true, value = "")
|
||||
@JsonProperty("className")
|
||||
@NotNull
|
||||
public String getClassName() {
|
||||
@NotNull public String getClassName() {
|
||||
return className;
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ public class ArrayOfArrayOfNumberOnly implements Serializable {
|
||||
|
||||
@ApiModelProperty(value = "")
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||
@Valid public List<@Valid List<@Valid BigDecimal>> getArrayArrayNumber() {
|
||||
return arrayArrayNumber;
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user