Commit Graph

58 Commits

Author SHA1 Message Date
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
wanganjun
de30db8071 [joi] make the return type of validate() as promise like (#22741)
* [joi] make return type of validate() as promise like

* [joi] update "Definitions by" section of the package header.

* [joi] test promise functionality of valdate()
2018-01-09 11:32:10 -08:00
Ozum Eldogan
66dc9ac93f forbiddenKeys for ObjectSchema (#21906) 2018-01-03 00:03:51 -08:00
Matthew Bull
5ee6ff2ab5 Applied changes from feedback 2017-12-11 23:54:17 +00:00
Matthew Bull
166d1a8b35 Joi.extend can be called with arrays 2017-12-06 20:38:10 +00:00
Young Rok Kim
d688e9c604 [joi] add missing tslint.json to v10 2017-12-05 11:31:14 +09:00
Young Rok Kim
584a55ece0 [joi] fix guid test failures 2017-12-05 11:26:32 +09:00
Young Rok Kim
ea099f6c3a [joi] fix TS compile error with LanguageOptions 2017-12-05 11:26:23 +09:00
Dan Kraus
0c20cfdcd9 Casts GuidVersions to pass linter 2017-11-28 18:33:14 -05:00
Dan Kraus
3f594941b0 Converts var to let 2017-11-28 17:49:32 -05:00
Dan Kraus
aa615ebb7e Adds string base64 typings 2017-11-15 18:42:32 -05:00
Daniel Rosenwasser
2224b0c11f
Merge pull request #19976 from rokoroku/patch-joi-11
[joi] Update to v13
2017-11-10 13:48:06 -08:00
Young Rok Kim
03f74c2c5c joi v10: suppress strictFunctionTypes options 2017-11-01 11:09:18 +09:00
Young Rok Kim
e062226510 joi: add optional key and label property to the Context 2017-11-01 10:55:32 +09:00
Young Rok Kim
e764326427 joi: add missing 'truncate' and 'normalize' to StringSchema 2017-11-01 10:54:02 +09:00
Young Rok Kim
165b07ef72 joi: seperate v10 2017-11-01 10:48:12 +09:00
Andy
19f89399e4 Ensure every package has a tslint.json (#21009)
* Ensure every package has a tslint.json

* Fixes
2017-10-25 11:13:50 -07:00
Richard Silverton
fa63fd564a fix ReferenceOptions interface for Joi to include Hoek.reach options (#20635) 2017-10-17 09:15:45 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Young Rok Kim
67356265a4 joi: updated to v11.0.3 2017-09-24 04:00:00 +09:00
Young Rok Kim
d90627cfa9 joi: revert f59617 2017-09-24 02:44:12 +09:00
Young Rok Kim
d3a7b32ced joi: add missing 'alt' method 2017-09-24 02:44:11 +09:00
Youngrok Kim
7f4df57e11 Merge branch 'master' into patch-joi 2017-09-08 01:19:18 +09:00
Drew Pirrone-Brusse
61409c12df Add missing Joi.string().uuid()
As per the [Joi API docs](https://github.com/hapijs/joi/blob/v10.5.0/API.md#stringguid---aliases-uuid) `uuid()` is an alias for `guid()`, so this is essentially a one-liner.
2017-08-29 12:39:23 -04:00
Young Rok Kim
c21edc7017 joi: add version constant 2017-08-21 07:43:58 +09:00
Young Rok Kim
b3efa241ea joi: correct Reference type, seperate JoiObject 2017-08-21 07:41:21 +09:00
Young Rok Kim
8220481ec1 joi: add missing api .exist() 2017-08-21 07:19:02 +09:00
Young Rok Kim
3b95aa6cce joi: unify return values as this 2017-08-21 03:22:31 +09:00
Young Rok Kim
b716113a05 joi: remove generic type parameter of AnySchema 2017-08-21 02:54:53 +09:00
Young Rok Kim
3fd52b2d31 joi: fix test failures 2017-08-21 02:11:59 +09:00
Young Rok Kim
966e11027d joi: rename LanguageOptions interfaces 2017-08-21 02:10:43 +09:00
Young Rok Kim
e4f26b2d93 joi: update file header 2017-08-21 01:50:12 +09:00
Young Rok Kim
a46ae186d8 joi: update ValidationOptions 2017-08-21 01:39:50 +09:00
Young Rok Kim
4f1d8ddc52 joi: correct argument of Joi.object() 2017-08-21 01:30:17 +09:00
Young Rok Kim
c6330cf431 joi: add test for Joi.describe() 2017-08-21 01:25:55 +09:00
Young Rok Kim
38de7bf080 joi: correct Extension interfaces 2017-08-21 01:19:36 +09:00
Young Rok Kim
6a0e625e68 joi: amend Joi.alternatives() 2017-08-21 01:14:42 +09:00
Young Rok Kim
1dbad1fa87 joi: add Joi.describe() 2017-08-21 01:12:26 +09:00
Young Rok Kim
f59617bd9a joi: cleanup non-existent functions 2017-08-21 01:02:15 +09:00
Young Rok Kim
6fe24b2dba joi: extract compilable schema as SchemaLike 2017-08-21 00:56:23 +09:00
Young Rok Kim
100bdfd79c joi: add LanguageOptions 2017-08-20 23:39:09 +09:00
Young Rok Kim
88ebedb61f joi: extract context as type interface 2017-08-20 23:21:40 +09:00
Young Rok Kim
4863017f0f joi: correct State interface 2017-08-20 22:56:09 +09:00
Young Rok Kim
cbe5daa214 joi: simplify ValidationOptions 2017-08-20 22:43:33 +09:00
Young Rok Kim
4396c38ea4 joi: make SchemaMap to allow plain objects 2017-08-20 22:42:55 +09:00
Andy
3b31f6b181 joi: Remove unnecessary parentheses (#18799) 2017-08-09 13:03:47 -07:00
Simon Schick
135ed17a23 joi: Improve extend typings (#18760)
* joi: Improve `extend` typings

* fixup! joi: Improve `extend` typings

* fixup! joi: Improve `extend` typings

* use TS 2.4
2017-08-09 10:56:27 -07:00
Andy
1ee9a51f35 Avoid unnecessary /// <reference types="node" /> in tests (#17226) 2017-06-15 14:53:16 -07:00
Evgeny
09e220a9e8 [joi] add interface for AnySchema.error() overriding (#16448)
* [joi] add interface for AnySchema.error() overriding

* [joi] increase version to 10.4.0
2017-06-01 09:06:49 -07:00