Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Spring] fix deprecated generation #12832

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public interface {{classname}} {
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
{{#virtualService}}
@ApiVirtual
{{/virtualService}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ public class {{classname}}Controller implements {{classname}} {
{{/externalDocs}}
* @see {{classname}}#{{operationId}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
public {{#responseWrapper}}{{.}}<{{/responseWrapper}}ResponseEntity<{{>returnTypes}}>{{#responseWrapper}}>{{/responseWrapper}} {{operationId}}(
{{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{>cookieParams}}{{^-last}},
{{/-last}}{{/allParams}}{{#vendorExtensions.x-spring-paginated}}{{#hasParams}},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public interface {{classname}}Delegate {
{{/externalDocs}}
* @see {{classname}}#{{operationId}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
{{#jdk8-default-interface}}default {{/jdk8-default-interface}}{{#responseWrapper}}{{.}}<{{/responseWrapper}}ResponseEntity<{{>returnTypes}}>{{#responseWrapper}}>{{/responseWrapper}} {{operationId}}({{#allParams}}{{^isFile}}{{^isBodyParam}}{{>optionalDataType}}{{/isBodyParam}}{{#isBodyParam}}{{^reactive}}{{{dataType}}}{{/reactive}}{{#reactive}}{{^isArray}}Mono<{{{dataType}}}>{{/isArray}}{{#isArray}}Flux<{{{baseType}}}>{{/isArray}}{{/reactive}}{{/isBodyParam}}{{/isFile}}{{#isFile}}{{#isArray}}List<{{/isArray}}{{#reactive}}Flux<Part>{{/reactive}}{{^reactive}}MultipartFile{{/reactive}}{{#isArray}}>{{/isArray}}{{/isFile}} {{paramName}}{{^-last}},
{{/-last}}{{/allParams}}{{#reactive}}{{#hasParams}},
{{/hasParams}}ServerWebExchange exchange{{/reactive}}{{#vendorExtensions.x-spring-paginated}}, final Pageable pageable{{/vendorExtensions.x-spring-paginated}}){{#unhandledException}} throws Exception{{/unhandledException}}{{^jdk8-default-interface}};{{/jdk8-default-interface}}{{#jdk8-default-interface}} {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ CompletableFuture<ResponseEntity<List<Pet>>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ CompletableFuture<ResponseEntity<List<Pet>>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(List<String> status) {
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default ResponseEntity<Set<Pet>> findPetsByTags(Set<String> tags) {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ default Mono<ResponseEntity<Flux<Pet>>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ default Mono<ResponseEntity<Flux<Pet>>> findPetsByStatus(List<String> status,
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default Mono<ResponseEntity<Flux<Pet>>> findPetsByTags(Set<String> tags,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(List<String> status) {
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default ResponseEntity<Set<Pet>> findPetsByTags(Set<String> tags) {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(List<String> status) {
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default ResponseEntity<Set<Pet>> findPetsByTags(Set<String> tags) {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ default Mono<ResponseEntity<Flux<Pet>>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ default Mono<ResponseEntity<Flux<Pet>>> findPetsByStatus(List<String> status,
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default Mono<ResponseEntity<Flux<Pet>>> findPetsByTags(Set<String> tags,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(List<String> status, final Pa
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default ResponseEntity<List<Pet>> findPetsByTags(List<String> tags, final Pageable pageable) {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(List<String> status, final Pa
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default ResponseEntity<List<Pet>> findPetsByTags(List<String> tags, final Pageable pageable) {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiVirtual
@Operation(
operationId = "findPetsByTags",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ default ResponseEntity<List<Pet>> findPetsByStatus(
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",
Expand Down