joi icon indicating copy to clipboard operation
joi copied to clipboard

The most powerful data validation library for JS

Results 188 joi issues
Sort by recently updated
recently updated
newest added

#### Context * *node version*: 18.6.0 * *module version*: 17.6.0 * *environment* (e.g. node, browser, native): node * *used with* (e.g. hapi application, another framework, standalone, ...): React Hook Form...

support

#### Context ``` ❯ npm explain joi && node --version && uname -a [email protected] v16.14.2 Darwin 5c52309d33e3 20.6.0 Darwin Kernel Version 20.6.0: Tue Apr 19 21:04:45 PDT 2022; root:xnu-7195.141.29~1/RELEASE_X86_64 x86_64...

#### Support plan * *is this issue currently blocking your project?* (yes/no): NO * *is this issue affecting a production system?* (yes/no): NO #### Context * *node version*: v14.17.0 *...

#### Context ``` [email protected] v16.14.2 Darwin 5c52309d33e3 20.6.0 Darwin Kernel Version 20.6.0: Tue Apr 19 21:04:45 PDT 2022; root:xnu-7195.141.29~1/RELEASE_X86_64 x86_64 i386 Darwin ``` #### How can we help? I'm trying...

#### Context * *node version*: 12+ * *module version*: 17.6.0 * *environment* (e.g. node, browser, native): node #### How can we help? I have a case where I need to...

#### Context * *node version*: v16.14.0 * *module version*: v17.4.0 * *environment* (e.g. node, browser, native): node * *used with* (e.g. hapi application, another framework, standalone, ...): standalone * *any...

#### Support plan * *is this issue currently blocking your project?* No, just a painful refactor * *is this issue affecting a production system?* No #### Context * *node version*:...

I needed a feature such as in [this StackOverflow](https://stackoverflow.com/questions/70034307/joi-how-to-use-default-values-with-xor) question. When you have a schema such as: ```js const schema = Joi.object({ a: Joi.string().default(() => null), b: Joi.string().default(() => null)...