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

数组只有一个元素无法再删除该元素 #44

Closed
MrBigBang opened this issue Jun 16, 2021 · 1 comment
Closed

数组只有一个元素无法再删除该元素 #44

MrBigBang opened this issue Jun 16, 2021 · 1 comment

Comments

@MrBigBang
Copy link

如果数组元素只有一个元素的时候,删除该元素会提示: '删除失败,至少保留一个数据项。‘
这个能否支持删除数组所有元素,即空数组?

@wibetter
Copy link
Owner

已完善数组子项个数的限制,默认可以删除数组最后一个子项,用户也可以通过JSONSchema给数组设置最少和最多子项。
相关代码改动点:04902593ae5b29df75a1b7f31a17848b7af6fc00。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants