code: @Override
      public void validate(ValidationHelper helper, Context context, String key, SecurityRequirement t) {
  
          if (!(t.isEmpty())) {
              Map<String, SecurityScheme> schemes = null;
              if (context.getModel().getComponents() != null) {
                  schemes = context.getModel().getComponents().getSecuritySchemes();
              }
              Set<String> h = t.keySet();
              for (String name : h) {
                  if (schemes == null || !schemes.containsKey(name) || schemes.get(name) == null) {
                      final String message = Tr.formatMessage(tc, "securityRequirementNotDeclared", name);
                      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.ERROR, context.getLocation(), message));
                  } else {
                      String type = schemes.get(name).getType() != null ? schemes.get(name).getType().toString() : null;
                      List<String> value = t.get(name);
                      if ("oauth2".equals(type) || "openIdConnect".equals(type)) {
                          if (value == null || value.isEmpty()) {
                              final String message = Tr.formatMessage(tc, "securityRequirementScopeNamesRequired", name);
                              helper.addValidationEvent(
                                                        new ValidationEvent(ValidationEvent.Severity.ERROR, context.getLocation(), message));
                          }
                      } else if ("apiKey".equals(type) || "http".equals(type)) {
                          if (value != null && !value.isEmpty()) {
                              final String message = Tr.formatMessage(tc, "securityRequirementFieldNotEmpty", name, value);
                              helper.addValidationEvent(
                                                        new ValidationEvent(ValidationEvent.Severity.ERROR, context.getLocation(), message));
                          }
                      }
                  }
  
              }
  
          } else {
              final String message = Tr.formatMessage(tc, "securityRequirementIsEmpty");
              helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.ERROR, context.getLocation(), message));
          }
      }
docs: {@inheritDoc}