kibana/packages/kbn-config-schema
Todd Kennedy 6d1a8943ce
[feat] add reach-like functionality to object (#37118)
* [feat] add reach-like functionality to object

In #36804 we need to validate a `Partial<HttpConfig>` object which may
or may not have all the required keys attached to it.  This is the type
of use-case for `Joi.reach`, so we should expose a reach-like method on
the object validation class so that you can return the validator for a
specific key on an object.

* [fix] change to validateKey

* [fix] use throw error matcher

* [fix] use same interface for validate

* [fix] change test name]
2019-05-24 15:59:15 -07:00
..
src [feat] add reach-like functionality to object (#37118) 2019-05-24 15:59:15 -07:00
types Introduce recordOf schema. Remove redundant declarations. (#26952) 2018-12-12 15:43:54 +01:00
package.json Update Typescript to the latest version (#32063) 2019-02-28 17:21:47 +01:00
tsconfig.json [ts][ftr] improve types for ftr and expect.js, cleanup changes to tsconfig files (#31948) 2019-02-28 12:06:00 -08:00