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

多层嵌套对象的验证规则不生效 #2368

Closed
J1angyue opened this issue Nov 13, 2022 · 1 comment
Closed

多层嵌套对象的验证规则不生效 #2368

J1angyue opened this issue Nov 13, 2022 · 1 comment

Comments

@J1angyue
Copy link

Describe the bug

多层嵌套对象的验证规则不生效

Reproduction

比如有以下对象,要验证c属性:
{ a: { b: { c: 'ccc' } } }
规则是这样写吗?不生效啊
{ a: { type: 'object', required: true, fields: { b: { type: 'object', required: true, fields: { c: { type: 'string', required: true } } } } } }

Same issue:yiminghe/async-validator#323

System Info

  • Operating System: windows11
  • Node version: v16.16.0
  • Package manager (npm/yarn/pnpm) and version: 8.11.0
@anncwb
Copy link
Collaborator

anncwb commented Apr 18, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@anncwb anncwb added the Stale label Apr 18, 2024
@anncwb anncwb closed this as completed Apr 25, 2024
@vbenjs vbenjs locked and limited conversation to collaborators Aug 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants