tmsw/swagger-node-restify — pull request #1 by chimmelb (2013-12-19 22:19:26+00:00)
Title: Allow nested Models to be created with API spec

Only the 'responseClass' was added to the models object of the swagger json, even if its referenced objects were defined. So swagger-ui could not display the ref'd objects (only their names). New 'spec' property is 'otherModels', which is an array of other Model names (strings). It is optional, so will not affect other working versions. Models are only added once (as per current code).

Used like this:
````
{
...
"responseClass" : "PersonInfo",
"otherModels" : ["PersonContact", "PersonOther" ],
...
}
````