Migrate from @ApiImplicitParams to @Parameters

Apache 2.0

Converts @ApiImplicitParams to @Parameters and the @ApiImplicitParam annotation to @Parameter and converts the directly mappable attributes and removes the others.

org.openrewrite.openapi.swagger.MigrateApiImplicitParamsToParameters
mod run . --recipe=org.openrewrite.openapi.swagger.MigrateApiImplicitParamsToParameters

Install 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.

  1. Change type ApiImplicitParams to Parameters
  2. Change type ApiImplicitParam to Parameter
  3. Change annotation attribute name @Parameter(value) to @Parameter(description)
  4. Remove annotation attribute @Parameter(dataType)
  5. Remove annotation attribute @Parameter(paramType)
  6. Remove annotation attribute @Parameter(allowMultiple)
  7. Migrate @ApiImplicitParam to @Parameter