diff --git a/hapi/hapi-tests.ts b/hapi/hapi-tests.ts index c0f8d9f6e0..11ad81d2dd 100644 --- a/hapi/hapi-tests.ts +++ b/hapi/hapi-tests.ts @@ -82,5 +82,18 @@ server.route([{ } }]); +// config.validate parameters should be optional +server.route([{ + method: 'GET', + path: '/hello2', + handler: function(request: Hapi.Request, reply: Function) { + reply('hello world2'); + }, + config: { + validate: { + } + } +}]); + // Start the server server.start();