joi-extension-string-validFromRefs
An extension to Joi to enable checking that a string is composed from a number of refs.
In the below example we are confirming that fullName
is composed from firstName
and lastName
var Joi = ; var schema = Joiobject firstName: Joi lastName: Joi fullName: Joi; var input = fistName: 'John' lastName: 'Smith' fullName: 'Smith, John'; Joi