Skip to content

Commit 4aa0dc5

Browse files
committed
remove comment related to security warning (only 1st is used)
1 parent a4825d8 commit 4aa0dc5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java

-8
Original file line numberDiff line numberDiff line change
@@ -613,14 +613,6 @@ public void processOperation(String resourcePath, String httpMethod, Operation o
613613
continue;
614614
}
615615
Map<String, SecuritySchemeDefinition> authMethods = new HashMap<String, SecuritySchemeDefinition>();
616-
// NOTE: Use only the first security requirement for now.
617-
// See the "security" field of "Swagger Object":
618-
// https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#swagger-object
619-
// "there is a logical OR between the security requirements"
620-
if (securities.size() > 1) {
621-
// LOGGER.warn("More than 1 security requirements are found, using only the first one");
622-
}
623-
//Map<String, List<String>> security = securities.get(0);
624616
for (Map<String, List<String>> security: securities) {
625617
for (String securityName : security.keySet()) {
626618
SecuritySchemeDefinition securityDefinition = fromSecurity(securityName);

0 commit comments

Comments
 (0)