-
Notifications
You must be signed in to change notification settings - Fork 13
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
When the schema has required fields, unexpanded {} will not trigger validation, expanded {} can trigger validation #105
Comments
@imolorhe please confirm this bug, thank you |
Yes I can confirm it is still there. Looks like this isn't a bug but is intended? 🤔 cc @acao why do we not want to validate when the doc length is short? imo an empty editor is also invalid but that should also be length of 0 after trimming 🤔 |
I think validation should be done when the document length is short, because it is easy for users to misunderstand that there is no difference between expanding and not expanding null map |
agreed on all of this, short documents should be validated, i think we should only check to avoid validating for an an empty string. |
@rookie-luochao the issue i fixed was with the text document validation length, did that not solve your issue? |
I saw your modification, but using the schema I provided, the same problem still occurs. Seems to have removed |
my use schema:
associate #99, this bug has not been resolved, unable to reopen bug
when the schema has required fields, expect that both unexpanded or expanded {} can trigger verification
The text was updated successfully, but these errors were encountered: