[Akka-Scala] Fix #1781 re specs w/o security defs

Per issue recommendation, fix is to DefaultCodegen#fromSecurity, which
now returns an empty list rather than null if no securityDefinitions
property is present in the swagger spec
This commit is contained in:
Andy Lowry
2015-12-29 11:58:28 -05:00
parent 6180b7b059
commit e864994b62

View File

@@ -1602,7 +1602,7 @@ public class DefaultCodegen {
*/
public List<CodegenSecurity> fromSecurity(Map<String, SecuritySchemeDefinition> schemes) {
if (schemes == null) {
return null;
return Collections.emptyList();
}
List<CodegenSecurity> secs = new ArrayList<CodegenSecurity>(schemes.size());