joi
joi copied to clipboard
The most powerful data validation library for JS
I used it while developing the environment and reported this error once I packaged it for access `[nuxt] [request error] [unhandled] [500] Cannot find module 'F:\project-lmq\learn-self-study\bingo-book\j-book-demo\.output\server\node_modules\@hapi\hoek\lib\assert' imported from F:\project-lmq\learn-self-study\bingo-book\j-book-demo\.output\server\chunks\login.post.mjs`
## Summary **joi** v18.0.0 is a small maintenance release which goal is mainly to **drop node v12 support** by upgrading all the dependencies. - **Upgrade time**: low - no expected...
I have a type which has some parameters that come from GET (and requires validation), others are filled later using request headers and protocol and other stuff (which don't require...
This PR improves object's types. ### Before 1. regular object - output schema is `any` ```ts const testSchema = Joi.object({ FOO: 'bar' }); ``` ![image](https://github.com/hapijs/joi/assets/9304194/545eaa8c-31de-4647-9568-13f2ca59239c) 2. with `keys` - output...
#### Support plan * *is this issue currently blocking your project?* (yes): * *is this issue affecting a production system?* (no): #### Context * *node version*: 18 * *module version...
#### Support plan * *is this issue currently blocking your project?* (yes/no): yes * *is this issue affecting a production system?* (yes/no): no #### Context * *node version*: v16.14.0 *...
#### Support plan * *is this issue currently blocking your project?: yes * *is this issue affecting a production system?: yes #### Context * *node version*: 14.17.0 * *module version*:...
#### Context * *node version*: 18.11.0 * *module version*: 17.9.1 #### What are you trying to achieve or the steps to reproduce ? To verify my email strings, i would...
#### Context * *16.5.1*: * *17.9.2*: #### What are you trying to achieve or the steps to reproduce ? The following code: ```js import Joi from 'joi'; const schema =...
thanks for your great work! here is my question: https://codesandbox.io/s/typescript-playground-export-forked-cty967 how can I fix it?