Top "Joi" questions

Object schema description language and validator for JavaScript objects.

JOI email validation

Im using Joi library as standalone validator for my CRA project but when firing email() validator im getting cryptic error …

hapijs joi
hapijs joi validation , just validate one field and to allow any field

I want to validate one field and to allow another fields without validation; by example just to validate: "firstname" field. …

hapijs joi
hapi route joi validation of password confirmation

How do I check that password and password_confirmation are the same ? var Joi = require('joi'), S = Joi.string().required().…

node.js hapijs joi
Descriptive Hapi/Joi validation error

I've been trying to implement Joi in our node application (joi as standalone, not with hapi) and it seems to …

node.js validation schema hapijs joi
Hapijs and Joi: validate query params with presence: 'forbidden'

My goal is to create a index route for posts. User should be able to specify some query params (ie. …

javascript node.js hapijs joi
Implement Joi in Typescript

Simple joi validation snippet in javascript.It will simply return an error object when validation fails. validate.js const Joi =…

javascript typescript joi
How to validate string with Joi?

I am using Node Joi for validation. I am new in node I want to validate env to accept only 2 …

node.js joi
Multiple Joi validation types

I search a lot but nothing found to allow multiple type validation in Joi Link: https://github.com/hapijs/joi …

javascript node.js hapijs joi
Allow optional parameters in Joi without specifying them

I'm fairly new to using Joi to validate request payloads in hapi. My question is the following. I have this …

javascript node.js hapijs joi
How can I validate "number of digits" from joi using nodejs?

i want that if the number of digits in the input field in less/more than 14(for example) then joi …

node.js mongoose joi