[JavaSpring] Generate deprecated property, annotation and javadoc. (#16493)

* [JavaSpring] Generate deprecated annotation and doc properties

* [JavaSpring] Generate deprecated for @Schema

* [JavaSpring] Add sample folder to workflow

---------

Co-authored-by: Diego Urban <d.urban@carepay.com>
This commit is contained in:
Diego Urban
2023-09-06 09:55:15 +02:00
committed by GitHub
parent 270238e060
commit 3817e40f47
73 changed files with 2340 additions and 34 deletions

View File

@@ -135,7 +135,7 @@ public interface PetApi {
)
@ResponseStatus(HttpStatus.OK)
default List<Pet> findPetsByStatus(
@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List<String> status
@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) @Deprecated List<String> status
) {
return getDelegate().findPetsByStatus(status);
}

View File

@@ -78,6 +78,7 @@ public class Pet {
}
}
@Deprecated
private StatusEnum status;
public Pet() {
@@ -216,14 +217,20 @@ public class Pet {
/**
* pet status in the store
* @return status
* @deprecated
*/
@ApiModelProperty(value = "pet status in the store")
@JsonProperty("status")
@Deprecated
public StatusEnum getStatus() {
return status;
}
/**
* @deprecated
*/
@Deprecated
public void setStatus(StatusEnum status) {
this.status = status;
}