Migrate from @ApiImplicitParams to @Parameters
Apache 2.0Converts @ApiImplicitParams to @Parameters and the @ApiImplicitParam annotation to @Parameter and converts the directly mappable attributes and removes the others.
org. openrewrite. openapi. swagger. MigrateApiImplicitParamsToParametersmod run . --recipe= org. openrewrite. openapi. swagger. MigrateApiImplicitParamsToParametersInstall 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
ApiImplicitParamstoParameters - Change type
ApiImplicitParamtoParameter - Change annotation attribute name
@Parameter(value)to@Parameter(description) - Remove annotation attribute
@Parameter(dataType) - Remove annotation attribute
@Parameter(paramType) - Remove annotation attribute
@Parameter(allowMultiple) - Migrate
@ApiImplicitParamto@Parameter