Migrate from Swagger to SpringDoc and OpenAPI

MSAL

Migrate from Swagger to SpringDoc and OpenAPI.

org.openrewrite.java.springdoc.SwaggerToSpringDoc
mod run . --recipe=org.openrewrite.java.springdoc.SwaggerToSpringDoc

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. Migrate from Swagger to OpenAPI
  2. Remove @Import(BeanValidatorPluginsConfiguration.class)
  3. Remove annotation @springfox.documentation.swagger2.annotations.EnableSwagger2
  4. Remove annotation @springfox.documentation.oas.annotations.EnableOpenApi
  5. Rewrite safe PathSelectors.regex(...) calls as PathSelectors.ant(...)
  6. Migrate Docket to GroupedOpenAPI