[Spring] fix deprecated generation (#12832)

This commit is contained in:
Oleh Kurpiak
2022-07-13 06:08:28 +03:00
committed by GitHub
parent 8025aa3bfa
commit 2e2da7bc82
45 changed files with 51 additions and 0 deletions

View File

@@ -134,6 +134,9 @@ public interface {{classname}} {
* @see <a href="{{url}}">{{summary}} Documentation</a>
{{/externalDocs}}
*/
{{#isDeprecated}}
@Deprecated
{{/isDeprecated}}
{{#virtualService}}
@ApiVirtual
{{/virtualService}}

View File

@@ -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}},

View File

@@ -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}} {

View File

@@ -137,6 +137,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -141,6 +141,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -139,6 +139,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -141,6 +141,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -163,6 +163,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -140,6 +140,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -133,6 +133,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -137,6 +137,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -135,6 +135,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -140,6 +140,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -132,6 +132,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -159,6 +159,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -181,6 +181,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -181,6 +181,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -164,6 +164,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -143,6 +143,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -91,6 +91,7 @@ public interface PetApiDelegate {
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default ResponseEntity<Set<Pet>> findPetsByTags(Set<String> tags) {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {

View File

@@ -165,6 +165,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -150,6 +150,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -102,6 +102,7 @@ public interface PetApiDelegate {
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default Mono<ResponseEntity<Flux<Pet>>> findPetsByTags(Set<String> tags,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();

View File

@@ -131,6 +131,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",

View File

@@ -164,6 +164,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -181,6 +181,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -137,6 +137,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@Operation(
operationId = "findPetsByTags",
summary = "Finds Pets by tags",

View File

@@ -168,6 +168,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -168,6 +168,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -147,6 +147,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -91,6 +91,7 @@ public interface PetApiDelegate {
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default ResponseEntity<Set<Pet>> findPetsByTags(Set<String> tags) {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {

View File

@@ -147,6 +147,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -91,6 +91,7 @@ public interface PetApiDelegate {
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default ResponseEntity<Set<Pet>> findPetsByTags(Set<String> tags) {
getRequest().ifPresent(request -> {
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {

View File

@@ -169,6 +169,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -155,6 +155,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -103,6 +103,7 @@ public interface PetApiDelegate {
* @deprecated
* @see PetApi#findPetsByTags
*/
@Deprecated
default Mono<ResponseEntity<Flux<Pet>>> findPetsByTags(Set<String> tags,
ServerWebExchange exchange) {
Mono<Void> result = Mono.empty();

View File

@@ -149,6 +149,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -92,6 +92,7 @@ public interface PetApiDelegate {
* @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"))) {

View File

@@ -149,6 +149,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -92,6 +92,7 @@ public interface PetApiDelegate {
* @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"))) {

View File

@@ -170,6 +170,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -170,6 +170,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -168,6 +168,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",

View File

@@ -170,6 +170,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiVirtual
@Operation(
operationId = "findPetsByTags",

View File

@@ -168,6 +168,7 @@ public interface PetApi {
* or Invalid tag value (status code 400)
* @deprecated
*/
@Deprecated
@ApiOperation(
tags = { "pet" },
value = "Finds Pets by tags",