Skip to content

Commit

Permalink
standard format
Browse files Browse the repository at this point in the history
  • Loading branch information
z0mt3c committed Feb 21, 2017
1 parent e245414 commit 63d66b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ utils.setNotEmpty = function (target, key, value) {
}

utils.generateRouteNickname = function (route) {
return route.method + route.path.replace(/[\/|\{|}]/gi, '_')
return route.method + route.path.replace(/[/|{|}]/gi, '_')
}

utils.getSetting = function (schema, key) {
Expand Down
3 changes: 2 additions & 1 deletion test/resources-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ describe('resources', () => {
'hapi-swaggered': {
responses: {
default: {
description: 'Bad Request', schema: Joi.object({
description: 'Bad Request',
schema: Joi.object({
bar: Joi.string().description('test').required()
})
},
Expand Down

0 comments on commit 63d66b1

Please sign in to comment.