const { error, value } = schema.validate({ a: 'a string' }); ... The schema can be a plain JavaScript object where every key is assigned a joi type, ...
確定! 回上一頁