Skip to content

Commit

Permalink
Update swagger-2.yml - Change attribute description to title (#15)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
amanda-matteucci authored Sep 24, 2024
1 parent 9f56fe3 commit e8cc01c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/rewrite/swagger-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e8cc01c

Please sign in to comment.