You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@hueniverse , hi guy, I tried. It seems that it hasn't been repaired yet. What I expect is the following results:
constschema=Joi.object({isComment: [1,2],status: ['1','2'],});try{constres=awaitschema.validateAsync({isComment: '1',status: 1},{abortEarly: false,allowUnknown: false,presence: 'required',});console.log('joi验证通过',res);}catch(error){// nowconsole.log('joi验证不通过',error);// "isComment" must be one of [1, 2]. "status" must be one of [1, 2]// expectconsole.log('joi验证不通过',error);// "isComment" must be one of [1, 2]. "status" must be one of ['1', '2']}
The text was updated successfully, but these errors were encountered: