Replace springfox @ApiIgnore on method parameters with @Parameter(hidden = true)
Apache 2.0Springfox's @ApiIgnore is commonly placed on framework-injected controller parameters (Principal, HttpServletRequest, Pageable, ...). A flat ChangeType to io.swagger.v3.oas.annotations.Hidden produces code that does not compile, because @Hidden cannot target parameters. Convert parameter usages directly to @io.swagger.v3.oas.annotations.Parameter(hidden = true) and leave method/class-level @ApiIgnore for the subsequent ChangeType step.
org. openrewrite. openapi. swagger. MigrateApiIgnoreParameterToParameterHiddenmod run . --recipe= org. openrewrite. openapi. swagger. MigrateApiIgnoreParameterToParameterHiddenInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.