Replace elements of SpringFox's security with Swagger's security models

MSAL

Replace ApiKey, AuthorizationScope, and SecurityScheme elements with Swagger's equivalents.

org.openrewrite.java.spring.doc.SecurityContextToSecurityScheme
mod run . --recipe=org.openrewrite.java.spring.doc.SecurityContextToSecurityScheme

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 ApiKey to SecurityScheme
  2. Change type springfox.documentation.service.SecurityScheme to io.swagger.v3.oas.models.security.SecurityScheme
  3. Change type SecurityReference to SecurityRequirement
  4. Change type AuthorizationScope to Scopes