0 I'm currently trying to setup validation using the joi package but I'm running into some issues that most likely revolve around syntax. The schema I've set up is a fairly simple one that checks whether or not a number is valid and/or if the id exists within the database.
I need to create dynamic schema to validate my api request query in node js using Joi validator depending on a key in the request query. Say the following below mentioned pattern are my valid queri...
You can use object.keys([schema]), which Sets or extends the allowed object keys where: schema - optional object where each key is assigned a joi type object. If schema is {} no keys allowed. If schema is null or undefined, any key allowed. If schema is an object with keys, the keys are added to any previously defined keys (but narrows the selection if all keys previously allowed). Defaults to ...
Is this possible to insert a function to a Joi validation schema which will check in the DB if the value is unique? (The check will be done by a function that I make, inside Joi function method). ...
I'm trying to validate an input using "joi-browser" schema. I want the input value to be valid only if it's similar to a description property inside any one of the objects inside an array...
Looking to create a Joi Schema validation based off the param name to select corresponding schema to validate Not Hapi/Joi The params will either be full-time, contract-associate, intern-associate,
node.js - Create a JOI schema validation based on a Param name ...
Is there any way to merge two joi schemas into a single schema? Schema 1 { alpha: Joi.number().required(), beta: Joi.string().required(), chalie: Joi.object({ xray ...