Migrate from Swagger to SpringDoc and OpenAPI
MSALMigrate from Swagger to SpringDoc and OpenAPI.
org. openrewrite. java. springdoc. SwaggerToSpringDocmod run . --recipe= org. openrewrite. java. springdoc. SwaggerToSpringDocInstall 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.
- Migrate from Swagger to OpenAPI
- Remove
@Import(BeanValidatorPluginsConfiguration.class) - Remove annotation
@springfox.documentation.swagger2.annotations.EnableSwagger2 - Remove annotation
@springfox.documentation.oas.annotations.EnableOpenApi - Rewrite safe
PathSelectors.regex(...)calls asPathSelectors.ant(...) - Migrate
DockettoGroupedOpenAPI