We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
传参 { a: undefined } 在校验 { a: { type: 'string', required: false } } 时, 会失败。
it.only('test paramsValidates', async () => { const res = ctx.paramsValidate({ a: 'string', b: { type: 'string', required: false }, }, { a: 'ab', b: undefined, }); });
在 parameter 中,是用的 hasOwnProperty 判断是否有值: 这里会让 b = undefined 逃逸掉。不知道是不是什么考虑设计的
The text was updated successfully, but these errors were encountered:
No branches or pull requests
传参 { a: undefined }
在校验 { a: { type: 'string', required: false } } 时,
会失败。
在 parameter 中,是用的 hasOwnProperty 判断是否有值:
这里会让
b = undefined
逃逸掉。不知道是不是什么考虑设计的
The text was updated successfully, but these errors were encountered: