-
Notifications
You must be signed in to change notification settings - Fork 419
feat(core): Add validate function based rule condition #2441
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
Conversation
Add a new rule condition `ValidateFunctionCondition` using a given `validate` function to evaluate the condition result. This allows using arbitrary custom logic to evaluate condition results. This facilitates not using schema-conditions to be able to only use one pre-compiled AJV for the data schema at a later stage.
✅ Deploy Preview for jsonforms-examples ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@sdirix I now added the additional context information being available without breaking API as described here: #2441 (comment) |
sdirix
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me, but there is an issue with the example
8da42f4 to
f502634
Compare
|
@sdirix Thanks for the review and suggestion :) The example should be fixed now. |
sdirix
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for me!
Add a new rule condition
ValidateFunctionConditionusing a givenvalidatefunction to evaluate the condition result. This allows using arbitrary custom logic to evaluate condition results.This facilitates not using schema-conditions to be able to only use one pre-compiled AJV for the data schema at a later stage.