diff --git a/ng-swagger-gen.js b/ng-swagger-gen.js index 84b190c..71e2e7c 100644 --- a/ng-swagger-gen.js +++ b/ng-swagger-gen.js @@ -905,7 +905,7 @@ function propertyType(property) { }; } else { - let itemType = propertyType(property.items); + let itemType = propertyType(property.items||{type:'string'}); return { allTypes: mergeTypes(itemType), toString: () => 'Array<' + itemType + '>' diff --git a/package.json b/package.json index 9e4f811..6653cde 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ng-swagger-gen", - "version": "2.3.1", + "version": "2.3.2", "license": "MIT", "author": "Cyclos development team", "description": "A Swagger 2.0 codegen for Angular",