Skip to content

Commit

Permalink
whitespace change, generate samples
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-mfg committed Apr 5, 2024
1 parent 738e390 commit 7ad0597
Show file tree
Hide file tree
Showing 217 changed files with 876 additions and 982 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
**/
Expand Down Expand Up @@ -79,7 +79,7 @@ public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {

@ApiModelProperty(value = "")
@JsonProperty("map_number")
public Map<String, BigDecimal> getMapNumber() {
@Valid public Map<String, BigDecimal> getMapNumber() {
return mapNumber;
}

Expand Down Expand Up @@ -184,7 +184,7 @@ public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapA

@ApiModelProperty(value = "")
@JsonProperty("map_array_integer")
public Map<String, List<Integer>> getMapArrayInteger() {
@Valid public Map<String, List<Integer>> getMapArrayInteger() {
return mapArrayInteger;
}

Expand Down Expand Up @@ -219,7 +219,7 @@ public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapAr

@ApiModelProperty(value = "")
@JsonProperty("map_array_anytype")
public Map<String, List<Object>> getMapArrayAnytype() {
@Valid public Map<String, List<Object>> getMapArrayAnytype() {
return mapArrayAnytype;
}

Expand Down Expand Up @@ -254,7 +254,7 @@ public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> m

@ApiModelProperty(value = "")
@JsonProperty("map_map_string")
public Map<String, Map<String, String>> getMapMapString() {
@Valid public Map<String, Map<String, String>> getMapMapString() {
return mapMapString;
}

Expand Down Expand Up @@ -289,7 +289,7 @@ public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>>

@ApiModelProperty(value = "")
@JsonProperty("map_map_anytype")
public Map<String, Map<String, Object>> getMapMapAnytype() {
@Valid public Map<String, Map<String, Object>> getMapMapAnytype() {
return mapMapAnytype;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
@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";

/**
**/
Expand All @@ -40,8 +40,7 @@ public Animal className(String className) {

@ApiModelProperty(required = true, value = "")
@JsonProperty("className")
@NotNull
public String getClassName() {
@NotNull public String getClassName() {
return className;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArr

@ApiModelProperty(value = "")
@JsonProperty("ArrayArrayNumber")
public List<List<BigDecimal>> getArrayArrayNumber() {
@Valid public List<@Valid List<@Valid BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {

@ApiModelProperty(value = "")
@JsonProperty("ArrayNumber")
public List<BigDecimal> getArrayNumber() {
@Valid public List<@Valid BigDecimal> getArrayNumber() {
return arrayNumber;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {

@ApiModelProperty(value = "")
@JsonProperty("array_array_of_integer")
public List<List<Long>> getArrayArrayOfInteger() {
@Valid public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger;
}

Expand Down Expand Up @@ -106,7 +106,7 @@ public ArrayTest arrayArrayOfModel(List<List<@Valid ReadOnlyFirst>> arrayArrayOf

@ApiModelProperty(value = "")
@JsonProperty("array_array_of_model")
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
@Valid public List<@Valid List<@Valid ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static KindEnum fromValue(String value) {
}
}

private @Valid KindEnum kind;
private KindEnum kind;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
@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";

/**
**/
Expand Down Expand Up @@ -50,8 +50,7 @@ public Category name(String name) {

@ApiModelProperty(required = true, value = "")
@JsonProperty("name")
@NotNull
public String getName() {
@NotNull public String getName() {
return name;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@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;

/**
**/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static JustSymbolEnum fromValue(String value) {
}
}

private @Valid JustSymbolEnum justSymbol;
private JustSymbolEnum justSymbol;
public enum ArrayEnumEnum {

FISH(String.valueOf("fish")), CRAB(String.valueOf("crab"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public static EnumStringEnum fromValue(String value) {
}
}

private @Valid EnumStringEnum enumString;
private EnumStringEnum enumString;
public enum EnumStringRequiredEnum {

UPPER(String.valueOf("UPPER")), LOWER(String.valueOf("lower")), EMPTY(String.valueOf(""));
Expand Down Expand Up @@ -115,7 +115,7 @@ public static EnumStringRequiredEnum fromValue(String value) {
}
}

private @Valid EnumStringRequiredEnum enumStringRequired;
private EnumStringRequiredEnum enumStringRequired;
public enum EnumIntegerEnum {

NUMBER_1(Integer.valueOf(1)), NUMBER_MINUS_1(Integer.valueOf(-1));
Expand Down Expand Up @@ -163,7 +163,7 @@ public static EnumIntegerEnum fromValue(Integer value) {
}
}

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));
Expand Down Expand Up @@ -211,8 +211,8 @@ public static EnumNumberEnum fromValue(Double value) {
}
}

private @Valid EnumNumberEnum enumNumber;
private @Valid OuterEnum outerEnum;
private EnumNumberEnum enumNumber;
private OuterEnum outerEnum;

/**
**/
Expand Down Expand Up @@ -243,8 +243,7 @@ public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {

@ApiModelProperty(required = true, value = "")
@JsonProperty("enum_string_required")
@NotNull
public EnumStringRequiredEnum getEnumStringRequired() {
@NotNull public EnumStringRequiredEnum getEnumStringRequired() {
return enumStringRequired;
}

Expand Down Expand Up @@ -301,7 +300,7 @@ public EnumTest outerEnum(OuterEnum outerEnum) {

@ApiModelProperty(value = "")
@JsonProperty("outerEnum")
public OuterEnum getOuterEnum() {
@Valid public OuterEnum getOuterEnum() {
return outerEnum;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
@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<>();

/**
Expand All @@ -35,7 +35,7 @@ public FileSchemaTestClass _file(ModelFile _file) {

@ApiModelProperty(value = "")
@JsonProperty("file")
public ModelFile getFile() {
@Valid public ModelFile getFile() {
return _file;
}

Expand All @@ -54,7 +54,7 @@ public FileSchemaTestClass files(List<@Valid ModelFile> files) {

@ApiModelProperty(value = "")
@JsonProperty("files")
public List<ModelFile> getFiles() {
@Valid public List<@Valid ModelFile> getFiles() {
return files;
}

Expand Down
Loading

0 comments on commit 7ad0597

Please sign in to comment.