lib/swaggard/api_definition.rb in swaggard-1.5.0 vs lib/swaggard/api_definition.rb in swaggard-1.5.1

- old
+ new

@@ -66,10 +66,10 @@ def security_definitions security_definitions = Swaggard.configuration.security_definitions return {} if security_definitions.empty? && Swaggard.configuration.security.empty? - Swaggard.configuration.security.keys.each do |authentication_type| + Swaggard.configuration.security.flat_map(&:keys).each do |authentication_type| next if security_definitions.key?(authentication_type) warn "#{authentication_type} not supported by securityDefinitions" end