Migrate from @ApiModelProperty to @Schema
Apache 2.0Converts the @ApiModelProperty annotation to @Schema and converts the "value" attribute to "description".
org. openrewrite. openapi. swagger. MigrateApiModelPropertyToSchemamod run . --recipe= org. openrewrite. openapi. swagger. MigrateApiModelPropertyToSchemaInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Change type
ApiModelPropertytoSchema - Change annotation attribute name
@Schema(value)to@Schema(description) - Remove annotation attribute
@Schema(position) - Remove annotation attribute
@Schema(notes) - Change annotation attribute name
@Schema(dataType)to@Schema(type) - Change annotation attribute name
@Schema(allowEmptyValue)to@Schema(nullable)