Skip to content

Commit

Permalink
fix(swagger): xfmr.js supports lodash 4.3.0 now
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaiklor committed Feb 10, 2016
1 parent fcd7011 commit 33cdcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/swagger/templates/api/hooks/swagger/lib/xfmr.js
Expand Up @@ -113,7 +113,7 @@ const Transformer = {
})
.value();

pathGroups = _.reduce(pathGroups, function(result, routes, path) {
pathGroups = _.reduce(pathGroups, function (result, routes, path) {
path = path.replace(/:(\w+)\??/g, '{$1}')
if (result[path])
result[path] = _.union(result[path], routes)
Expand Down

0 comments on commit 33cdcc7

Please sign in to comment.