Skip to content

Commit

Permalink
OpenAPITools#18689: Update samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
levitin committed May 21, 2024
1 parent 8789b6d commit 76877e2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
{{#vendorExtensions.x-field-extra-annotation}}
{{{vendorExtensions.x-field-extra-annotation}}}
{{/vendorExtensions.x-field-extra-annotation}}
{{#lombok.Builder}}
{{#defaultValue}}
@lombok.Builder.Default
{{/defaultValue}}
{{/lombok.Builder}}
{{#deprecated}}
@Deprecated
{{/deprecated}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

@lombok.Builder.Default
private Boolean complete = false;

public Order id(Long id) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ public class Pet {

private String name;

@lombok.Builder.Default
@Valid
private List<String> photoUrls = new ArrayList<>();

@lombok.Builder.Default
@Valid
private List<@Valid Tag> tags = new ArrayList<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public static StatusEnum fromValue(String value) {

private StatusEnum status;

@lombok.Builder.Default
private Boolean complete = false;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ public class Pet {

private String name;

@lombok.Builder.Default
@Valid
private List<String> photoUrls = new ArrayList<>();

@lombok.Builder.Default
@Valid
private List<@Valid Tag> tags = new ArrayList<>();

Expand Down

0 comments on commit 76877e2

Please sign in to comment.