Skip to content

Commit

Permalink
Update Java Camel samples
Browse files Browse the repository at this point in the history
  • Loading branch information
DatApplePy committed Sep 24, 2024
1 parent aaaa906 commit 6971193
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public Category id(Long id) {
* Get id
* @return id
*/

@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("id")
@JacksonXmlProperty(localName = "id")
Expand All @@ -64,7 +63,6 @@ public Category name(String name) {
* Get name
* @return name
*/
@Pattern(regexp = "^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$")
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("name")
@JacksonXmlProperty(localName = "name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public ModelApiResponse code(Integer code) {
* Get code
* @return code
*/

@Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("code")
@JacksonXmlProperty(localName = "code")
Expand All @@ -68,7 +67,6 @@ public ModelApiResponse type(String type) {
* Get type
* @return type
*/

@Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("type")
@JacksonXmlProperty(localName = "type")
Expand All @@ -89,7 +87,6 @@ public ModelApiResponse message(String message) {
* Get message
* @return message
*/

@Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("message")
@JacksonXmlProperty(localName = "message")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public Order id(Long id) {
* Get id
* @return id
*/

@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("id")
@JacksonXmlProperty(localName = "id")
Expand All @@ -113,7 +112,6 @@ public Order petId(Long petId) {
* Get petId
* @return petId
*/

@Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("petId")
@JacksonXmlProperty(localName = "petId")
Expand All @@ -134,7 +132,6 @@ public Order quantity(Integer quantity) {
* Get quantity
* @return quantity
*/

@Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("quantity")
@JacksonXmlProperty(localName = "quantity")
Expand All @@ -155,7 +152,6 @@ public Order shipDate(Date shipDate) {
* Get shipDate
* @return shipDate
*/

@Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("shipDate")
@JacksonXmlProperty(localName = "shipDate")
Expand All @@ -176,7 +172,6 @@ public Order status(StatusEnum status) {
* Order Status
* @return status
*/

@Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("status")
@JacksonXmlProperty(localName = "status")
Expand All @@ -197,7 +192,6 @@ public Order complete(Boolean complete) {
* Get complete
* @return complete
*/

@Schema(name = "complete", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("complete")
@JacksonXmlProperty(localName = "complete")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,8 @@ public class Pet {

private @NotNull String name;

@Valid
private @NotNull List<String> photoUrls = new ArrayList<>();

@Valid
private List<@Valid Tag> tags = new ArrayList<>();

/**
Expand Down Expand Up @@ -109,7 +107,6 @@ public Pet id(Long id) {
* Get id
* @return id
*/

@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("id")
@JacksonXmlProperty(localName = "id")
Expand All @@ -130,7 +127,6 @@ public Pet category(Category category) {
* Get category
* @return category
*/
@Valid
@Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("category")
@JacksonXmlProperty(localName = "Category")
Expand All @@ -151,7 +147,6 @@ public Pet name(String name) {
* Get name
* @return name
*/
@NotNull
@Schema(name = "name", example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("name")
@JacksonXmlProperty(localName = "name")
Expand Down Expand Up @@ -180,7 +175,6 @@ public Pet addPhotoUrlsItem(String photoUrlsItem) {
* Get photoUrls
* @return photoUrls
*/
@NotNull
@Schema(name = "photoUrls", requiredMode = Schema.RequiredMode.REQUIRED)
@JsonProperty("photoUrls")
@JacksonXmlProperty(localName = "photoUrl")
Expand All @@ -193,7 +187,7 @@ public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls;
}

public Pet tags(List<@Valid Tag> tags) {
public Pet tags(List<Tag> tags) {
this.tags = tags;
return this;
}
Expand All @@ -210,7 +204,6 @@ public Pet addTagsItem(Tag tagsItem) {
* Get tags
* @return tags
*/

@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("tags")
@JacksonXmlProperty(localName = "Tag")
Expand All @@ -233,7 +226,6 @@ public Pet status(StatusEnum status) {
* @return status
* @deprecated
*/

@Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("status")
@JacksonXmlProperty(localName = "status")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public Tag id(Long id) {
* Get id
* @return id
*/

@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("id")
@JacksonXmlProperty(localName = "id")
Expand All @@ -64,7 +63,6 @@ public Tag name(String name) {
* Get name
* @return name
*/

@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("name")
@JacksonXmlProperty(localName = "name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public User id(Long id) {
* Get id
* @return id
*/

@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("id")
@JacksonXmlProperty(localName = "id")
Expand All @@ -76,7 +75,6 @@ public User username(String username) {
* Get username
* @return username
*/

@Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("username")
@JacksonXmlProperty(localName = "username")
Expand All @@ -97,7 +95,6 @@ public User firstName(String firstName) {
* Get firstName
* @return firstName
*/

@Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("firstName")
@JacksonXmlProperty(localName = "firstName")
Expand All @@ -118,7 +115,6 @@ public User lastName(String lastName) {
* Get lastName
* @return lastName
*/

@Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("lastName")
@JacksonXmlProperty(localName = "lastName")
Expand All @@ -139,7 +135,6 @@ public User email(String email) {
* Get email
* @return email
*/

@Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("email")
@JacksonXmlProperty(localName = "email")
Expand All @@ -160,7 +155,6 @@ public User password(String password) {
* Get password
* @return password
*/

@Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("password")
@JacksonXmlProperty(localName = "password")
Expand All @@ -181,7 +175,6 @@ public User phone(String phone) {
* Get phone
* @return phone
*/

@Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("phone")
@JacksonXmlProperty(localName = "phone")
Expand All @@ -202,7 +195,6 @@ public User userStatus(Integer userStatus) {
* User Status
* @return userStatus
*/

@Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
@JsonProperty("userStatus")
@JacksonXmlProperty(localName = "userStatus")
Expand Down

0 comments on commit 6971193

Please sign in to comment.