interagent/prmd — pull request #131 by Juice10 (2014-07-03 15:40:32+00:00)
Title: Generate documentation for objects nested in arrays

Add documentation for objects nested in arrays

```JSON
{
"total": null,
"result": [
{
"entity": {
"entityType": "type",
"id": "id",
"title": "title",
"description": "bla bla"
},
"values": {
"volume": null,
"impressions": null
}
}
]
}
```

Currently looks like:
![](http://monosnap.com/image/9r5DlrBLzzBPowKvpkOhpLlu8ouWxY.png)

Will change into:
![](http://monosnap.com/image/CDFYKLcPuNkITR9QaV9HqkJRJj5Uiv.png)

Example JSON Schema attributes
```JSON
"properties": {
"total": {
"id": "http://jsonschema.net/total#",
"type": "integer",
"required": false
},
"result": {
"id": "http://jsonschema.net/result#",
"type": "array",
"required": false,
"items": {
"id": "http://jsonschema.net/result/0#",
"type": "object",
"required": false,
"properties": {
"entity": {
"id": "http://jsonschema.net/result/0/entity#",
"type": "object",
"required": false,
"properties": {
"entityType": {
"id": "http://jsonschema.net/result/0/entity/entityType#",
"type": "string",
"description": "description",
"example": "type",
"required": false
},
"id": {
"id": "http://jsonschema.net/result/0/entity/id#",
"type": "string",
"description": "description",
"example": "id",
"required": false
},
"title": {
"id": "http://jsonschema.net/result/0/entity/title#",
"type": "string",
"description": "description",
"example": "title",
"required": false
},
"description": {
"id": "http://jsonschema.net/result/0/entity/description#",
"type": "string",
"description": "description",
"example": "bla bla",
"required": false
}
}
},
"values": {
"id": "http://jsonschema.net/result/0/values#",
"type": "object",
"required": false,
"properties": {
"volume": {
"id": "http://jsonschema.net/result/0/values/volume#",
"type": "integer",
"required": false
},
"impressions": {
"id": "http://jsonschema.net/result/0/values/impressions#",
"type": "integer",
"required": false
}
}
}
}
}

}
},
"type": [
"object"
],
```