From e8cc01cf853c816a786c5d0b35ee3ce51e12cef9 Mon Sep 17 00:00:00 2001 From: amanda-matteucci <158227748+amanda-matteucci@users.noreply.github.com> Date: Tue, 24 Sep 2024 15:56:46 -0500 Subject: [PATCH] Update swagger-2.yml - Change attribute description to title (#15) * Update swagger-2.yml - Change attribute description to title Change attribute "description" to "title" * Update swagger-2.yml Meant for the change to be for ApiModel, not ApiParam --- 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..8671429 100644 --- a/src/main/resources/META-INF/rewrite/swagger-2.yml +++ b/src/main/resources/META-INF/rewrite/swagger-2.yml @@ -239,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"