propertyName, not property
This commit is contained in:
parent
e22b826bca
commit
1dbc9cf113
|
@ -131,8 +131,9 @@ function addRoute(app, uri, doc, opts) {
|
||||||
*/
|
*/
|
||||||
function generateResourceDoc(opts) {
|
function generateResourceDoc(opts) {
|
||||||
var apiInfo = _cloneDeep(opts.apiInfo);
|
var apiInfo = _cloneDeep(opts.apiInfo);
|
||||||
for (var property in apiInfo) {
|
for (var propertyName in apiInfo) {
|
||||||
property = Array.isArray(property) ? property.join('') : property;
|
var property = apiInfo[propertyName];
|
||||||
|
apiInfo[propertyName] = Array.isArray(property) ? property.join('') : property;
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue