Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Fixed wrong key name in output.models
Browse files Browse the repository at this point in the history
  • Loading branch information
kozmatteo committed Feb 26, 2015
1 parent 0552a67 commit c67a238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Swagger.prototype.filterApiListing = function(req, res, r) {
_.forOwn(requiredModels, function (modelName) {
var model = self.allModels[modelName.replace(/^List\[(.+?)]/,'$1')];
if (model) {
output.models[modelName] = model;
output.models[modelName.replace(/^List\[(.+?)]/,'$1')] = model;
}
});

Expand Down

0 comments on commit c67a238

Please sign in to comment.