mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 16:22:48 +00:00
* add builder pattern to java client and spring generator * regenerate samples * update doc --------- Co-authored-by: jpfinne <jeanpaul@finne.be>
This commit is contained in:
@@ -38,6 +38,10 @@ public class AnimalDto {
|
||||
|
||||
private String color = "red";
|
||||
|
||||
public AnimalDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public AnimalDto className(String className) {
|
||||
this.className = className;
|
||||
return this;
|
||||
|
||||
@@ -68,6 +68,10 @@ public class BigCatDto extends CatDto {
|
||||
|
||||
private KindEnum kind;
|
||||
|
||||
public BigCatDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public BigCatDto kind(KindEnum kind) {
|
||||
this.kind = kind;
|
||||
return this;
|
||||
|
||||
@@ -35,6 +35,10 @@ public class CatDto extends AnimalDto {
|
||||
|
||||
private Boolean declawed;
|
||||
|
||||
public CatDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public CatDto declawed(Boolean declawed) {
|
||||
this.declawed = declawed;
|
||||
return this;
|
||||
|
||||
@@ -25,6 +25,10 @@ public class CategoryDto {
|
||||
|
||||
private String name = "default-name";
|
||||
|
||||
public CategoryDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public CategoryDto id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
|
||||
@@ -38,6 +38,10 @@ public class ContainerDefaultValueDto {
|
||||
|
||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||
|
||||
public ContainerDefaultValueDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ContainerDefaultValueDto nullableArray(List<String> nullableArray) {
|
||||
this.nullableArray = JsonNullable.of(nullableArray);
|
||||
return this;
|
||||
|
||||
@@ -28,6 +28,10 @@ public class DogDto extends AnimalDto {
|
||||
|
||||
private String breed;
|
||||
|
||||
public DogDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public DogDto breed(String breed) {
|
||||
this.breed = breed;
|
||||
return this;
|
||||
|
||||
@@ -177,6 +177,10 @@ public class EnumTestDto {
|
||||
|
||||
private OuterEnumDto outerEnum;
|
||||
|
||||
public EnumTestDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public EnumTestDto enumString(EnumStringEnum enumString) {
|
||||
this.enumString = enumString;
|
||||
return this;
|
||||
|
||||
@@ -57,6 +57,10 @@ public class FormatTestDto {
|
||||
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTestDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public FormatTestDto integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
return this;
|
||||
|
||||
@@ -29,6 +29,10 @@ public class NameDto {
|
||||
|
||||
private Integer _123number;
|
||||
|
||||
public NameDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public NameDto name(Integer name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
|
||||
@@ -82,6 +82,10 @@ public class PetDto {
|
||||
@Deprecated
|
||||
private StatusEnum status;
|
||||
|
||||
public PetDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public PetDto id(Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
|
||||
@@ -36,6 +36,10 @@ public class TypeHolderDefaultDto {
|
||||
|
||||
private List<Integer> arrayItem = new ArrayList<>(Arrays.asList(0, 1, 2, 3));
|
||||
|
||||
public TypeHolderDefaultDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public TypeHolderDefaultDto stringItem(String stringItem) {
|
||||
this.stringItem = stringItem;
|
||||
return this;
|
||||
|
||||
@@ -38,6 +38,10 @@ public class TypeHolderExampleDto {
|
||||
|
||||
private List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
public TypeHolderExampleDto() {
|
||||
super();
|
||||
}
|
||||
|
||||
public TypeHolderExampleDto stringItem(String stringItem) {
|
||||
this.stringItem = stringItem;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user