Skip to content
New issue

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

与 RuleType.object() 不兼容 #39

Closed
li-qs opened this issue Aug 25, 2022 · 1 comment
Closed

与 RuleType.object() 不兼容 #39

li-qs opened this issue Aug 25, 2022 · 1 comment

Comments

@li-qs
Copy link

li-qs commented Aug 25, 2022

for (const prop of joiSchema.$_terms?.keys) {

当验证对象里有 RuleType.object() 规则时,/swagger-ui/json 会报错:

object null is not iterable (cannot read property Symbol(Symbol.iterator))

debug 看了下是 joiSchema.$_terms?.keys 的值为 null

  • node version: 14.20.0
  • "@midwayjs/core": "^2.3.0"
  • "@midwayjs/decorator": "^2.3.0"
  • "@midwayjs/swagger": "^1.1.0"
@li-qs
Copy link
Author

li-qs commented Aug 25, 2022

另一个相同的issue:midwayjs/midway#1291

@li-qs li-qs closed this as completed Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant