From 817076c9be7c056821fd42b1e195a6e4b6d0dc5f Mon Sep 17 00:00:00 2001 From: amanda-matteucci <158227748+amanda-matteucci@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:35:41 -0500 Subject: [PATCH 1/2] Update swagger-2.yml - Change attribute description to title Change attribute "description" to "title" --- src/main/resources/META-INF/rewrite/swagger-2.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/META-INF/rewrite/swagger-2.yml b/src/main/resources/META-INF/rewrite/swagger-2.yml index 852ba40..5b3bfbc 100644 --- a/src/main/resources/META-INF/rewrite/swagger-2.yml +++ b/src/main/resources/META-INF/rewrite/swagger-2.yml @@ -222,6 +222,10 @@ recipeList: - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: io.swagger.annotations.ApiParam newFullyQualifiedTypeName: io.swagger.v3.oas.annotations.Parameter + - org.openrewrite.java.ChangeAnnotationAttributeName: + annotationType: io.swagger.v3.oas.annotations.Parameter + oldAttributeName: "description" + newAttributeName: "title" - org.openrewrite.java.ChangeAnnotationAttributeName: annotationType: io.swagger.v3.oas.annotations.Parameter oldAttributeName: "value" From 679acdcc10bb7860488a189bbc731cca90642b26 Mon Sep 17 00:00:00 2001 From: amanda-matteucci <158227748+amanda-matteucci@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:42:00 -0500 Subject: [PATCH 2/2] Update swagger-2.yml Meant for the change to be for ApiModel, not ApiParam --- src/main/resources/META-INF/rewrite/swagger-2.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/META-INF/rewrite/swagger-2.yml b/src/main/resources/META-INF/rewrite/swagger-2.yml index 5b3bfbc..8671429 100644 --- a/src/main/resources/META-INF/rewrite/swagger-2.yml +++ b/src/main/resources/META-INF/rewrite/swagger-2.yml @@ -222,10 +222,6 @@ recipeList: - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: io.swagger.annotations.ApiParam newFullyQualifiedTypeName: io.swagger.v3.oas.annotations.Parameter - - org.openrewrite.java.ChangeAnnotationAttributeName: - annotationType: io.swagger.v3.oas.annotations.Parameter - oldAttributeName: "description" - newAttributeName: "title" - org.openrewrite.java.ChangeAnnotationAttributeName: annotationType: io.swagger.v3.oas.annotations.Parameter oldAttributeName: "value" @@ -243,6 +239,10 @@ recipeList: - org.openrewrite.java.ChangeType: oldFullyQualifiedTypeName: io.swagger.annotations.ApiModelProperty newFullyQualifiedTypeName: io.swagger.v3.oas.annotations.media.Schema + - org.openrewrite.java.ChangeAnnotationAttributeName: + annotationType: io.swagger.v3.oas.annotations.Parameter + oldAttributeName: "description" + newAttributeName: "title" - org.openrewrite.java.ChangeAnnotationAttributeName: annotationType: io.swagger.v3.oas.annotations.media.Schema oldAttributeName: "value"