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
{{ message }}
Repository navigation
{required: false} rule does not skip the validation when the value is undefined but the key exists in the object #26
Activity
gaochengyidlmu commentedon Jul 2, 2018
I also have the problem.
const rule = { transferDate: {type: 'string', required: false, allowEmpty: true}let someDate = {transferDate: '2018-07-02'}
I want to set the transferDate to null.
but it throw the error.
{ message: 'should be a string', code: 'invalid', field: 'transferDate' }konglingwen94 commentedon Dec 10, 2020
同样的问题+1