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 errors when using rules in validation array #592

Merged
merged 2 commits into from
Dec 9, 2019
Merged

Fix errors when using rules in validation array #592

merged 2 commits into from
Dec 9, 2019

Conversation

stayallive
Copy link
Contributor

This fixes errors when using rule objects.

We might want to see if we can support all the different rule objects and convert them to Former rules but that will be a thing for the future.

For now this prevents Former form crashing when a Rule object is introduced into the rules of an element.

Related: #580 (want to keep this open to track supporting rule objects)

Copy link
Member

@claar claar left a comment

Choose a reason for hiding this comment

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

Looks great -- ready to merge. Thanks, @stayallive!

@stayallive stayallive merged commit a52f5a9 into formers:master Dec 9, 2019
@stayallive stayallive deleted the fix-object-validation-rules branch December 9, 2019 19:18
@stayallive
Copy link
Contributor Author

There was still 1 case left when a rule was passed as the only rule.

This was fixed here: cc2f3c4

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

Successfully merging this pull request may close these issues.

2 participants