-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fail to handle string[] #5
Comments
ps I really like the library. Good work |
Thanks, a lot, sorry for getting back late to this.
Try with this one
I've opened an issue - #7, which should allow you to specify any conditional logic you want. |
Hey, thanks for getting back to me. I like your solution for extending the predicate logic. I took a very similar approach by extending the import predicate object. I referenced line 23 because it would be nice to have the empty predicate ran against the array and its elements. something like this. The feature could be very useful for associating rules against json-schema-form arrays. We have a use case for hiding an entire section of the form until one element has been added to the array. |
@Steffan-Ennis Can you give me an example? So I would see how to better address this? |
@Steffan-Ennis merged your request |
Awesome, thanks. |
@Steffan-Ennis I've updated your fix, should still work |
I'm not sure if this is intentional behaviour. If it is it would be a good feature to be able to compare arrays and not just their items
Found a bad condition check on line 7 of conditionsMeet.js
line 7-8
if (!isObject(conditions) || !isObject(formData)) { toError(
Rule ${conditions} with ${formData} can't be processed); }
line 21
return refVal.some(val => conditionsMeet(refCondition, val));
can call with bad arguments
Example condition, targets is a string[]
"conditions": { "targets": "_empty" }
The text was updated successfully, but these errors were encountered: