mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 00:21:19 +00:00
[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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user