Commit Graph

23 Commits

Author SHA1 Message Date
Matteo Ferrando
da1373bcdb added timeout tests 2017-08-18 18:44:32 -04:00
Alexander James Phillips
5d4032b836 Fixes #18283 (#18404) 2017-08-01 09:12:55 -07:00
mailto1587
6c2fd39fcd [hapi] Added test for request.query 2017-06-22 19:35:03 +08:00
Nathan Shively-Sanders
4874667de9 Fix primitive weak type errors
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.
2017-06-15 11:46:46 -07:00
Christian
3b2f53cf6a hapi: fix incorrect connection.table() result type (#17070) 2017-06-09 15:05:33 -07:00
Niklas Wulf
046b7d5ff9 [Boom, Hapi] Add default generic type to all error creation functions (#17048)
* [Boom] Add default generic type to all error creation functions

* [Boom] Change default generic Data type to any instead of null

* [Boom] Add tests for error creation without custom data

* [Boom, Hapi] Move tests for passing Boom errors to Hapi continuation functions into hapi package

* [boom] add wrap and unauthorized return BoomError with data as null
2017-06-08 06:33:24 -07:00
Niklas Wulf
d45137018d [Hapi] Fix input and response validation function signatures (#16802)
* [Hapi] Fix input and response validation function signatures

Fixes #16750

* [Hapi] Allow custom validation options in route input and response

* [Hapi] Adjust validation contexts to match Hapi version 16.1.1

* [Hapi] Adjust test/route/validate.ts to match newest changes

* [Hapi] Add custom options to response validation test

* [Hapi] Update TypeScript version to 2.3 in packages that import Hapi

* [Hapi] Clarify documentation on validation function value, allow null
2017-06-07 06:37:04 -07:00
Arthur Ozga
cb4bcbe4fb Merge pull request #16595 from AJamesPhillips/FixJoiValidationObject
[hapi] Correct JoiValidationObject for route validate option.  Correct inject result.
2017-05-18 16:58:24 -07:00
Alexander James Phillips
cec538087c Correct inject result type 2017-05-18 23:27:48 +01:00
Alexander James Phillips
bbcb50a4e1 Update hapi route validate to allow joi Schema SchemaMap or array of those 2017-05-18 11:08:06 +01:00
Alexander James Phillips
678cc80ff5 Attempt to fix correct JoiValidationObject for hapi route validate option 2017-05-17 23:50:18 +01:00
Alexander James Phillips
cbda0a036b Fix tests for pluginSpecificConfiguration 2017-05-17 14:10:58 +02:00
Alexander James Phillips
95144bb247 Include Plugin specific config for route server and connection level 2017-05-17 13:32:57 +02:00
Simon Schick
f2cf1da49c address comments #2 2017-05-17 01:22:34 +02:00
Simon Schick
ac46bea13a address comments 2017-05-16 13:47:24 +02:00
Simon Schick
2d2f11dd8d rm additional whitespace 2017-05-16 04:24:20 +02:00
Simon Schick
87156fde6b fixed ext option and narrowed the type, fixed compression being mandatory 2017-05-16 04:19:15 +02:00
Alexander James Phillips
63c96d3815 Allow exclusion of conflicting properties #16416 2017-05-12 12:13:09 +01:00
Alexander James Phillips
dee8894855 Simpler typings than #16416 to catch some errors again 2017-05-11 13:21:49 +01:00
Alexander James Phillips
1557cefe0c Include @theefer's work in #16416 2017-05-11 11:10:05 +01:00
Alexander James Phillips
d20f912c77 Add scope and entity to route.options.auth 2017-05-08 20:28:19 +01:00
Alexander James Phillips
9fc3c9cd40 Fix some tslint errors and temporarily remove tslint.json 2017-05-07 20:43:03 +01:00
Alexander James Phillips
22d7c1dbcf Move hapi tests directory from tests to test 2017-05-07 15:06:09 +01:00