You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is query syntax validation without evaluation possible?
For example calling a function that returns an error if a user tries to add a malformed rule query like ((env eq "pro") and (company eq "go-feature-flag")
The text was updated successfully, but these errors were encountered:
If the eval function error it means that the rule is invalid.
That being said it does not catch all the use-cases, your example is considered valid while it should not.
To have a bit more info, I have opened this issue nikunjy/rules#41 on the nikunjy/rules repository. If I know more about it I will let you know.
Your question
Is query syntax validation without evaluation possible?
For example calling a function that returns an error if a user tries to add a malformed rule query like
((env eq "pro") and (company eq "go-feature-flag")
The text was updated successfully, but these errors were encountered: