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

Commit

Permalink
Temporarily reverting customFields change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimkang committed Apr 17, 2013
1 parent 063d9c5 commit 4dec464
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Common/node/swagger.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,15 +550,11 @@ function appendToApi(rootResource, api, spec) {
};

// Add custom fields.
var customFields = [];
for (var propertyName in spec) {
if (!(propertyName in op)) {
// Handlebars can't iterate over objects, but it can iterate over arrays.
// So, we are giving it an array of pair objects.
customFields.push({name: propertyName, value: spec[propertyName]});
op[propertyName] = spec[propertyName];
}
}
op.customFields = customFields;

if (spec.responseClass) {
op.responseClass = spec.responseClass;
Expand Down

0 comments on commit 4dec464

Please sign in to comment.