OpenApiResource: Remove name from OAuth SecurityScheme (#2422)

Signed-off-by: Paul Vogel <github@paulvogel.me>
This commit is contained in:
Paul Vogel 2021-07-05 23:10:53 +02:00 committed by GitHub
parent 7e5bf34d9e
commit 621d6eac1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,6 @@ public class OpenApiResource implements RESTResource {
flows.setAuthorizationCode(authorizationCode);
SecurityScheme securityScheme = new SecurityScheme();
securityScheme.setName("oauth2");
securityScheme.setType(SecurityScheme.Type.OAUTH2);
securityScheme.setFlows(flows);