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
Providing Expression Result for Rules for JsonLogic #978
Comments
I thought a little bit more about it and even played around. And my suggested approach has changed :)
|
There is a demonstration of "switch" mode of query builder (like switch-case, or if-then-else) |
this is mighty and aweseom and i missed that totally. We ill take a look, and we will most likely also provide a little PR for JsonLogic to be working with this approach. That is really really cool and i am impressed by the flexibility of this tool, truly awesome :) |
Hi @aepfli did you managed to do this MR? |
Is your feature request related to a problem? Please describe.
We want to use this project to create JsonLogic for OpenFeature targeting rules. This means we need to assign a return value to rules.
Valid JsonLogic for this approach:
Describe the solution you'd like
Ideally, we could define each rule's Return-object like a ValueSource.
Describe alternatives you've considered
For simple strings, I could increase the cardinality of each operator and add a manipulation step to the output - but this works for strings when returning strings. and it also works for numbers as numbers. But we would love to return any value.
magic and naive transformation
Additional context
So far, I like this query builder's flexibility; it is excellent and easy to configure.
This is not a feature request on its own; I can tackle this and take a look at it. The question is, is it feasible and desirable? Also, let me know your take on this. Furthermore, if you think it is not suited for this tool. Can you think of a solution where I'll not fork the whole repository but would manipulate desired parts? (eg. There is no container factory currently in the settings, so I can't overwrite it - coming from the java world, sorry if that would be easy)
Things I am not sure about:
Looking forward to the discussions
The text was updated successfully, but these errors were encountered: