We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e46b20 commit 7ef87f1Copy full SHA for 7ef87f1
src/main/java/io/swagger/codegen/v3/generators/javascript/JavaScriptClientCodegen.java
@@ -38,6 +38,7 @@
38
import java.util.Iterator;
39
import java.util.List;
40
import java.util.Map;
41
+import java.util.regex.Pattern;
42
43
import static io.swagger.codegen.v3.CodegenConstants.HAS_ENUMS_EXT_NAME;
44
import static io.swagger.codegen.v3.CodegenConstants.IS_ENUM_EXT_NAME;
@@ -505,6 +506,9 @@ public String toParamName(String name) {
505
506
507
@Override
508
public String toModelName(String name) {
509
+ if (name == null) {
510
+ return "Object";
511
+ }
512
name = sanitizeName(name); // FIXME parameter should not be assigned. Also declare it as "final"
513
514
if (!StringUtils.isEmpty(modelNamePrefix)) {
0 commit comments