-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
JsonLogic array management #270
Comments
You can see example of usage of jsonlogic's {
"all": [
{
"var": "multicolor"
},
{
"in": [
{
"var": ""
},
[
"yellow",
"green"
]
]
}
]
}
|
JsonLogic is import/expoer format only. |
I don't think this is doing what it might appear to be doing. Suppose my document is:
and I want to write an expression which evaluates to true if items contains all of the values
which evaluates to Fortunately, I have had difficulty producing the JsonLogic needed to satisfy my actual requirement for
As an additional wrench, I always save and load the tree as JsonLogic. So in order to implement this as an operator, I would need an equivalent to the As far as i can tell, my only options are: Is there another way to do what I'm trying to do? |
Yes, seems correct.
You can try to create PR (always welcomed!) or I can work on this feature when I have free time. |
Thanks for validating and reopening. We definitely may submit some contributions, but on this issue for now we've accepted that the user can work around this by entering each of the "all" values individually. |
This component support JsonLogic as input/output format, but I'm unable to find how manage json array (In particular I don't see how use all/some/none operations). Is this a documentation lack or this part of JsonLogic rules is not supported?
Here an example from JsonLogic docs.
Data
JsonLogic Rule
Expected result
Operato
The text was updated successfully, but these errors were encountered: