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

fix: nested objects returned checkResult, execution of async rules on arrays #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

giacomoaugello1
Copy link

  • Corrected the return of the check result for an ObjectType, ensuring that the "hasError" property is properly returned in the checkAsync statement. This ensures that errors generated by asynchronous rules are displayed in the Form.
  • Added code to the ArrayType component to include asynchronous rules when defining the "of" rule. Previously, only synchronous rules were being included.
  • Added test code to verify the behavior of these changes.

done();
}
});
});
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code added in ArrayType().of, but missing tests for it.

@giacomoaugello1
Copy link
Author

giacomoaugello1 commented Apr 25, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants