[Play Framework] Regenerate the samples. It was very outdated (#3760)

* Generate the samples for Play Framework. It was very outdated

* Add java-play-framework to the ensure-up-to-date script

* Update samples
This commit is contained in:
Jean-François Côté
2019-08-27 11:13:12 -04:00
committed by GitHub
parent e1116814c4
commit f94ff32b0c
216 changed files with 8807 additions and 5933 deletions

View File

@@ -12,10 +12,10 @@ import javax.validation.constraints.*;
@SuppressWarnings({"UnusedReturnValue", "WeakerAccess"})
public class Category {
@JsonProperty("id")
private Long id = null;
private Long id;
@JsonProperty("name")
private String name = null;
private String name;
public Category id(Long id) {
this.id = id;

View File

@@ -12,13 +12,13 @@ import javax.validation.constraints.*;
@SuppressWarnings({"UnusedReturnValue", "WeakerAccess"})
public class ModelApiResponse {
@JsonProperty("code")
private Integer code = null;
private Integer code;
@JsonProperty("type")
private String type = null;
private String type;
@JsonProperty("message")
private String message = null;
private String message;
public ModelApiResponse code(Integer code) {
this.code = code;

View File

@@ -13,16 +13,16 @@ import javax.validation.constraints.*;
@SuppressWarnings({"UnusedReturnValue", "WeakerAccess"})
public class Order {
@JsonProperty("id")
private Long id = null;
private Long id;
@JsonProperty("petId")
private Long petId = null;
private Long petId;
@JsonProperty("quantity")
private Integer quantity = null;
private Integer quantity;
@JsonProperty("shipDate")
private OffsetDateTime shipDate = null;
private OffsetDateTime shipDate;
/**
* Order Status
@@ -47,18 +47,18 @@ public class Order {
}
@JsonCreator
public static StatusEnum fromValue(String text) {
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
if (b.value.equals(value)) {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
@JsonProperty("status")
private StatusEnum status = null;
private StatusEnum status;
@JsonProperty("complete")
private Boolean complete = false;

View File

@@ -16,13 +16,13 @@ import javax.validation.constraints.*;
@SuppressWarnings({"UnusedReturnValue", "WeakerAccess"})
public class Pet {
@JsonProperty("id")
private Long id = null;
private Long id;
@JsonProperty("category")
private Category category = null;
private Category category;
@JsonProperty("name")
private String name = null;
private String name;
@JsonProperty("photoUrls")
private List<String> photoUrls = new ArrayList<>();
@@ -53,18 +53,18 @@ public class Pet {
}
@JsonCreator
public static StatusEnum fromValue(String text) {
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
if (b.value.equals(value)) {
return b;
}
}
return null;
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
@JsonProperty("status")
private StatusEnum status = null;
private StatusEnum status;
public Pet id(Long id) {
this.id = id;

View File

@@ -12,10 +12,10 @@ import javax.validation.constraints.*;
@SuppressWarnings({"UnusedReturnValue", "WeakerAccess"})
public class Tag {
@JsonProperty("id")
private Long id = null;
private Long id;
@JsonProperty("name")
private String name = null;
private String name;
public Tag id(Long id) {
this.id = id;

View File

@@ -12,28 +12,28 @@ import javax.validation.constraints.*;
@SuppressWarnings({"UnusedReturnValue", "WeakerAccess"})
public class User {
@JsonProperty("id")
private Long id = null;
private Long id;
@JsonProperty("username")
private String username = null;
private String username;
@JsonProperty("firstName")
private String firstName = null;
private String firstName;
@JsonProperty("lastName")
private String lastName = null;
private String lastName;
@JsonProperty("email")
private String email = null;
private String email;
@JsonProperty("password")
private String password = null;
private String password;
@JsonProperty("phone")
private String phone = null;
private String phone;
@JsonProperty("userStatus")
private Integer userStatus = null;
private Integer userStatus;
public User id(Long id) {
this.id = id;