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

Allow deeply nested if property checks #33

Merged
merged 5 commits into from
Aug 9, 2023
Merged

Conversation

brennj
Copy link
Collaborator

@brennj brennj commented Aug 8, 2023

Internal conversation https://remote-com.slack.com/archives/C02HTN0LY02/p1691493090023339

When we have a if check that needs to check two levels deep, it would break the json-schema-form library, this adds a check to checkIfConditionMatches to make it more capable to do understand these property types.

Theres enough logic to justify its own file, and I started some dedicated tests.

Copy link
Collaborator

@rylek90 rylek90 left a comment

Choose a reason for hiding this comment

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

Looks fine, thanks for adding tests 👀

@brennj brennj merged commit e34cfcc into main Aug 9, 2023
3 checks passed
@brennj brennj deleted the nested-if-checks-not-working branch August 9, 2023 08:35
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