diff --git a/README.md b/README.md
index bf29538..12c853c 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,18 @@ In Swagger UI's `index.html`, include the [Swagger integration script after othe
```
+Also, you will need a patched version of [Swagger Client](https://github.com/lbovet/swagger-js/blob/models-exposed/lib/swagger.js) so that the raw json-schema model is visible from Docson. Either replace the `swagger.js` file in your Swagger UI disctribution or take it directly from github by replacing
+
+```
+
+```
+
+with
+
+```
+
+```
+
For a better layout of parameter models, you may [want to change the width of some elements](https://github.com/lbovet/swagger-ui/blob/3f37722b03db6c48cc2a8460df26dda5f4d6f8e4/src/main/html/index.html#L20-L27):
```
diff --git a/docson-swagger.js b/docson-swagger.js
index ced0b30..80ffaaf 100644
--- a/docson-swagger.js
+++ b/docson-swagger.js
@@ -43,7 +43,11 @@ function createDoc(definitions, type) {
SwaggerOperation.prototype.getSignature = function(type, models) {
var collectionType, isPrimitive;
- collectionType = this.isCollectionType(type);
+ if(this.isCollectionType) {
+ collectionType = this.isCollectionType(type);
+ } else {
+ collectionType = this.isListType(type);
+ }
isPrimitive = ((collectionType != null) && models[collectionType]) || (models[type] != null) ? false : true;
if (isPrimitive) {
return type;