Description
I have a property which is List<List>
I tried to add the below in my .json file( using swaggercode gen cli - 2.1.2 )
"listOfListOfClassA": {
"type": "array",
"description": "description 1",
"items": {
"type": "array",
"description": "description 2",
"items": {
"$ref": "ClassA"
}
}
}
"ClassA": {
"id": "class_id",
"description": "Description for class A",
"properties": {
"propertyName1": {
"type": "string",
"description": "Property Name 1"
},
"propertyName2": {
"type": "string",
"description": "Property Name 1"
},
}
},
But I am getting the below exception
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
at java.util.regex.Matcher.reset(Matcher.java:309)
at java.util.regex.Matcher.(Matcher.java:229)
at java.util.regex.Pattern.matcher(Pattern.java:1093)
at io.swagger.codegen.DefaultCodegen.camelize(DefaultCodegen.java:1237)
at io.swagger.codegen.DefaultCodegen.camelize(DefaultCodegen.java:1212)
at io.swagger.codegen.languages.JavaClientCodegen.toModelName(JavaClientCodegen.java:179)
at io.swagger.codegen.languages.JavaClientCodegen.getSwaggerType(JavaClientCodegen.java:215)
at io.swagger.codegen.DefaultCodegen.getTypeDeclaration(DefaultCodegen.java:490)
Could you please advise ?