forked from loafle/openapi-generator-original
[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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user